示例#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);
 }