private void Awake() { lineOfSightVisual = GetComponent <LineOfSightVisual>(); lineofsight = GetComponent <LineOfSight>(); shooting1 = GetComponent <Shooting1>(); chaseAI = GetComponent <ChaseAI>(); }
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>(); }
// Use this for initialization void Awake () { lineOfSightVisual = GetComponent<LineOfSightVisual>(); lineofsight = GetComponent<LineOfSight>(); shooting1 = GetComponent<Shooting1>(); }