// Use this for initialization void Start() { MC = GameObject.FindGameObjectWithTag("Player").GetComponent<Magic_Controller>(); pcZ = GameObject.FindGameObjectWithTag("Player").GetComponent<Player_ControllerZ>(); z_camera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<Z_Camera>(); bullet = GameObject.Instantiate(bullet_Prefab); }
private Z_Camera zcamera; //注目対象はここで取得 // Use this for initialization void Start() { MC = GameObject.FindGameObjectWithTag("Player").GetComponent <Magic_Controller>(); pcVR = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_ControllerVR>(); //animator = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren<Animator>(); SE = GetComponent <AudioSource>(); zcamera = Camera.main.gameObject.GetComponentInChildren <Z_Camera>(); }
// Use this for initialization void Start() { z_Camera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<Z_Camera>(); MC = GameObject.FindGameObjectWithTag("Player").GetComponent<Magic_Controller>(); pcZ = GameObject.FindGameObjectWithTag("Player").GetComponent<Player_ControllerZ>(); animator = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren<Animator>(); SE = GetComponent<AudioSource>(); }
// Use this for initialization void Start() { MC = GameObject.FindGameObjectWithTag("Player").GetComponent<Magic_Controller>(); pcZ = GameObject.FindGameObjectWithTag("Player").GetComponent<Player_ControllerZ>(); zcamera = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren<Z_Camera>(); }
// Use this for initialization void Start() { z_camera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<Z_Camera>(); }
// 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>(); zcamera = Camera.main.gameObject.GetComponentInChildren<Z_Camera>(); }
void Start() { //Playerをセットし忘れてたら探す if (lookTarget == null) lookTarget = GameObject.FindGameObjectWithTag("Player"); pcZ = lookTarget.GetComponent<Player_ControllerZ>(); Zcamara = GetComponent<Z_Camera>(); //現在の向きから割り出さないとだめ //horizontalAngle = lookTarget.transform.eulerAngles.y; verticalAngle = 0.0f; elapsedTime = 0; EndPos = lookTarget.transform.eulerAngles.y; StartPos = horizontalAngle; time = 0.5f; deltaPos = (EndPos - StartPos) / time; deltaPos = Mathf.Repeat(deltaPos, 360.0f / time);//360進数に直す is_Q_Move = true; }