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