void Awake() { Current = this; Initialize(); if (fogRenderer) { InitializeRenderer(); } }
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); }