コード例 #1
0
ファイル: managerScript.cs プロジェクト: Spex130/PsychRPG
 public void switchProfileToMenu()
 {
     profileState = stateProfile.deactivate;
     profileMenu.transform.localPosition = new Vector3(-500, 0, 0);
     gameState = state.menuScreen;
     menuState = stateMenu.activate;
 }
コード例 #2
0
ファイル: managerScript.cs プロジェクト: Spex130/PsychRPG
 public void switchToProfile()
 {
     mainMenu.transform.localPosition = new Vector3(-500, 0, 0);
     print("MOVE TO -500");
     menuState    = stateMenu.inactive;
     gameState    = state.profileScreen;
     profileState = stateProfile.activate;
 }
コード例 #3
0
ファイル: managerScript.cs プロジェクト: Spex130/PsychRPG
    public void profileStateUpdate()
    {
        switch (profileState)
        {
        case stateProfile.activate:
            profileMenu.transform.parent        = spawnPoint.transform;
            profileMenu.transform.position      = new Vector3(0, 0, 0);
            profileMenu.transform.localPosition = new Vector3(0, 0, 0);
            profileMenu.transform.localScale    = new Vector3(1, 1, 1);

            profileState = stateProfile.active;

            break;

        case stateProfile.deactivate:

            break;
        }
    }