// Use this for initialization void Awake() { if (_instance == null) { _instance = this; } else { Destroy(gameObject); } viewerList = new List <FowViewer>(); viewerPos = new List <int[]>(); InvokeRepeating("NewFog", 0, updateTime); }
// Use this for initialization void Start() { FowManager.AddViewer(this); }
private void OnDestroy() { FowManager.RemoveViewer(this); }