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

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

            FogOfWarSystem.RegisterInfluence(this);
        }
Ejemplo n.º 3
0
 void OnDestroy()
 {
     FogOfWarSystem.UnregisterInfluence(this);
 }
Ejemplo n.º 4
0
 void OnDisable()
 {
     FogOfWarSystem.UnregisterInfluence(this);
 }
Ejemplo n.º 5
0
 void OnEnable()
 {
     FogOfWarSystem.RegisterInfluence(this);
 }
Ejemplo n.º 6
0
 void Start()
 {
     FogOfWarSystem.RegisterInfluence(this);
 }