Scr_CameraController cameraController; // カメラコントローラのマネージャ void Start () { cameraDir = Vector3.Scale(transform.forward, new Vector3(1, 1, 1)).normalized; //コントロールマネージャの取得 if (GameObject.Find("PuniconCamera/ControllerManager") != null) { controllerManager = GameObject.Find("PuniconCamera/ControllerManager").GetComponent<Scr_ControllerManager>(); cameraController = GameObject.Find("PuniconCamera/CameraController").GetComponent<Scr_CameraController>(); } }
// Use this for initialization void Start() { if (GameObject.Find("PuniconCamera/CameraController") != null) { CameraController = GameObject.Find("PuniconCamera/CameraController").GetComponent <Scr_CameraController>(); } if (GameObject.Find("OfflinePlayer_Tanuki/StandCameraObj") != null) { Camera = GameObject.Find("OfflinePlayer_Tanuki/StandCameraObj").GetComponent <OfflineCameraStand>(); } }
// Use this for initialization void Start() { m_targetRotation = transform.rotation; playerStateManager = this.gameObject.GetComponent <scr_PSM>(); m_cameraController = Camera.main.GetComponent <Scr_CameraController>(); if (GetComponent <Rigidbody>()) { m_rb = GetComponent <Rigidbody>(); } else { Debug.LogError("The player needs a rigidbody"); } forwardInput = 0; turnInput = 0; jumpInput = 0; }
//-------------------------------------------------------------------------- // 初期化処理 //-------------------------------------------------------------------------- void Start() { nTouchCount = 0; nTouchCountOld = 0; nContollerID = -1; nCameraID = -1; if (GameObject.Find("PuniconCamera/ControllerManager") != null) { ControllerManager = GameObject.Find("PuniconCamera/ControllerManager").GetComponent <Scr_ControllerManager>(); } if (GameObject.Find("PuniconCamera/CameraController") != null) { CameraController = GameObject.Find("PuniconCamera/CameraController").GetComponent <Scr_CameraController>(); } if (GameObject.Find("PuniconCamera/Punicon") != null) { punicon = GameObject.Find("PuniconCamera/Punicon").GetComponent <PunipuniController>(); } }