// Use this for initialization void Start() { MC = GameObject.FindGameObjectWithTag("Player").GetComponent<Magic_Controller>(); pcZ = GameObject.FindGameObjectWithTag("Player").GetComponent<Player_ControllerZ>(); animator = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren<Animator>(); SE = GetComponent<AudioSource>(); CCZ = Camera.main.gameObject.GetComponent<Camera_ControllerZ>(); }
// Use this for initialization void Start() { ecZ = GetComponent<Enemy_ControllerZ>(); MS = GetComponent<MoveSmooth>(); animator = GetComponentInChildren<Animator>(); //SE = GetComponent<AudioSource>(); CCZ = Camera.main.gameObject.GetComponent<Camera_ControllerZ>(); priority = 5;//最初はサーチに oldpos = transform.position; }
// Use this for initialization void Start() { ecZ = GetComponent<Enemy_ControllerZ>(); MS = GetComponent<MoveSmooth>(); animator = GetComponentInChildren<Animator>(); SE[0] = GetComponent<AudioSource>(); CCZ = Camera.main.gameObject.GetComponent<Camera_ControllerZ>(); priority = 5;//最初はサーチに }