Beispiel #1
0
 private void Awake()
 {
     lineOfSightVisual = GetComponent <LineOfSightVisual>();
     lineofsight       = GetComponent <LineOfSight>();
     shooting1         = GetComponent <Shooting1>();
     chaseAI           = GetComponent <ChaseAI>();
 }
Beispiel #2
0
 void Start()
 {
     if (!isLocalPlayer)
     {
         return;
     }
     Hero1.onClick.AddListener(ChangeToHero1);
     Hero2.onClick.AddListener(ChangeToHero2);
     shootingScript   = this.GetComponent <Shooting1>();
     playerMotor      = this.GetComponent <PlayerMotor>();
     playerController = this.GetComponent <PlayerController>();
     changeCicle      = this.GetComponent <ChangeCicle>();
 }
Beispiel #3
0
 // Use this for initialization
 void Awake ()
 {
     lineOfSightVisual = GetComponent<LineOfSightVisual>();
     lineofsight = GetComponent<LineOfSight>();
     shooting1 = GetComponent<Shooting1>();
 }