private void Start() { player = GameObject.Find("FPSController"); anim = GetComponent <EnemyAnimation>(); info = GetComponent <EnemyStatusInfo>(); ///ai = GetComponent<EnemyAI>(); }
private void Start() { player = GameObject.Find("FPSController"); info = GetComponent <EnemyStatusInfo>(); anim = GetComponent <EnemyAnimation>(); motor = GetComponent <EnemyMotor>(); gun = GetComponentInChildren <Gun>(); }