// Use this for initialization void Start() { player = GameObject.Find("player").GetComponent <PlayerMove>(); cameraControl = GameObject.Find("CameraDammy").GetComponent <CameraControl>(); mainCameraControl = Camera.main.GetComponent <MainCameraControl>(); talk = GameObject.Find("GameControlObject").GetComponent <TalkProcess>(); /*animator = GameObject.Find("ActionUI").GetComponent<Animator>(); * pauseAnim = GameObject.Find("Pausemenu").GetComponent<Animator>(); * Button1 = GameObject.Find("Button1").GetComponent<Button>(); * if (GameObject.Find("ClearFlagObject") != null) * { * // stageClearProcess = GameObject.Find("ClearFlagObject").GetComponent<stageClearedFlag>(); * }*/ ///////// //match = Resources.Load("Prefab/GameMainObjects/Match") as GameObject ; }
void Start() { doorCount = 0; open = false; fm = GameObject.Find("GameControlObject").GetComponent <FlagsInStageManager>(); gm = GameObject.FindGameObjectWithTag("GM").GetComponent <GameManager>(); talk = GameObject.Find("GameControlObject").GetComponent <TalkProcess>(); switch (doorType) { // ドアの種類とステージの判別 case DoorType.Tutorial_Red: doorCount = 1; stage = 0; break; case DoorType.Tutorial_Blue: doorCount = 2; stage = 0; break; case DoorType.Stage1_Right: doorCount = 1; stage = 1; break; case DoorType.Stage1_Left: doorCount = 2; stage = 1; break; case DoorType.Stage1_Rock: doorCount = 3; stage = 1; break; case DoorType.Stage1_Blue: doorCount = 4; stage = 1; break; } }
// Use this for initialization void Start() { talk = GameObject.Find("GameControlObject").GetComponent <TalkProcess>(); }