Пример #1
0
    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();
 }
Пример #3
0
 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);
 }
Пример #6
0
 void Start()
 {
     damageReduction = 0;
     enemyTM.AddTarget(transform);
 }
Пример #7
0
 void Start()
 {
     enemyTM.AddTarget(transform);
 }