[WIP] Working on collectibles
This commit is contained in:
34
Assets/CollectableDuckManager.cs
Normal file
34
Assets/CollectableDuckManager.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Mapbox.Unity.Map;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
|
||||
public class CollectableDuckManager : MonoBehaviour
|
||||
{
|
||||
[FormerlySerializedAs("CollectableDucks")] public List<CollectableDuckData> collectableDucks;
|
||||
|
||||
public AbstractMap map;
|
||||
|
||||
private static CollectableDuckManager _instance;
|
||||
public static CollectableDuckManager Instance
|
||||
{
|
||||
get { return _instance; }
|
||||
private set { _instance = value; }
|
||||
}
|
||||
|
||||
public CollectableDuckManager()
|
||||
{
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
for (int i = 0; i < collectableDucks.Count; i++)
|
||||
{
|
||||
var duck = collectableDucks[i];
|
||||
if (duck.LatitudeLongitude)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user