Example #1
0
 void Awake()
 {
     Current = this;
     Initialize();
     if (fogRenderer)
     {
         InitializeRenderer();
     }
 }
Example #2
0
        void Start()
        {
            viewDistance = unitInfo.VisionRange;

            if (player.Team != RTSManager.Current.players[0].Team)
            {
                suspended = true;
            }

            FogOfWarSystem.RegisterInfluence(this);
        }
 void OnDestroy()
 {
     FogOfWarSystem.UnregisterInfluence(this);
 }
 void OnDisable()
 {
     FogOfWarSystem.UnregisterInfluence(this);
 }
 void OnEnable()
 {
     FogOfWarSystem.RegisterInfluence(this);
 }
 void Start()
 {
     FogOfWarSystem.RegisterInfluence(this);
 }