public bool isFPS = false; //FPS視点かどうかのフラグ void Start() { circeGroupObj = GameObject.Find("prismsetCircle_Group"); circleGroup_Script = circeGroupObj.GetComponent <CircleGroupManager>(); cameraPosNum = 0; targetMnager_Script = gameMatherObj.GetComponent <Target_Manager>(); //回転限界を設定 if (chargerObj.transform.position.y <= 0) { rotaX = 7.2f * Mathf.Abs(chargerObj.transform.position.y) + 15f; } else if (chargerObj.transform.position.y > 0) { rotaX = -11.6f * chargerObj.transform.position.y + 15f; } if (chargerObj.transform.position.x >= 0) { rotaY = chargerObj.transform.position.x * 10 - 20; } else if (chargerObj.transform.position.x < 0) { rotaY = 6.6f * chargerObj.transform.position.x - 20; } _rotation = Quaternion.Euler(rotaX, rotaY, 0); //位置セーブ savePos = chargerObj.transform.position; }
void Start() { cnt = 0; // myCollider = gameObject.GetComponent<CapsuleCollider>(); cameraObj = GameObject.Find("Main Camera"); camera_Script = cameraObj.GetComponent <CameraWork>(); light_Script = gameObject.GetComponent <Light_Manager>(); circeGroupObj = GameObject.Find("prismsetCircle_Group"); circleGroup_Script = circeGroupObj.GetComponent <CircleGroupManager>(); }