void Awake() { shootableMask = LayerMask.GetMask("Shootable"); floorMask = LayerMask.GetMask("Floor"); dayRef = FindObjectOfType <DayNightCycle>(); turretLR = GetComponentInChildren <LineRenderer>(); enemyTM = FindObjectOfType <EnemyTargetManager>(); turretLight = GetComponentInChildren <Light>(); Light turretSpotLight = gameObject.GetComponent <Light>(); enemyTM.AddTarget(transform); health.SetValues(); }
void Start() { targetManager.AddTarget(transform); //targetManager.GetTargets(); }
void Start() { targetManager.AddTarget(transform); }
void Awake() { enemyTM = FindObjectOfType <EnemyTargetManager>(); enemyTM.AddTarget(transform); health.SetValues(); }
// Use this for initialization void Start() { enemyTM = FindObjectOfType <EnemyTargetManager>(); enemyTM.AddTarget(transform); }
void Start() { damageReduction = 0; enemyTM.AddTarget(transform); }
void Start() { enemyTM.AddTarget(transform); }