Exemplo n.º 1
0
 // 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);
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     FowManager.AddViewer(this);
 }
Exemplo n.º 3
0
 private void OnDestroy()
 {
     FowManager.RemoveViewer(this);
 }