コード例 #1
0
    private void Start()
    {
        GameManager.inBattle = true;
        inFirstStage         = true;
        btnPos = Position.Center;
        partyStats.SetPartyStats();
        playerIndex = (partyAC.IsDead(0)) ? 1 : 0;
        partyStats.SelectMemberDialog(playerIndex);
        firstAttack.SwapSprites(1);

        Camera.main.GetComponent <SoundController>().BattleMusic();
        SetMonsters();
    }
コード例 #2
0
    private void ChangePointerLocation(Position pos)
    {
        if (inFirstStage)
        {
            switch (pos)
            {
            case Position.Up: firstChange.SwapSprites(); break;

            case Position.Down: firstRun.SwapSprites(); break;

            default: firstAttack.SwapSprites(); break;
            }
        }
        else if (inSecondStage)
        {
            switch (pos)
            {
            case Position.Up: secondSkill.SwapSprites(); break;

            case Position.Left: secondItem.SwapSprites(); break;

            case Position.Right: secondDefend.SwapSprites(); break;

            default: secondAttack.SwapSprites(); break;
            }
        }
    }
コード例 #3
0
 private void ChangeStage()
 {
     inFirstStage  = !inFirstStage;
     inSecondStage = !inSecondStage;
     firstAttack.transform.parent.gameObject.SetActive(inFirstStage);
     secondAttack.transform.parent.gameObject.SetActive(inSecondStage);
     if (inSecondStage)
     {
         secondAttack.SwapSprites(1);
         secondDefend.SwapSprites(0);
         secondItem.SwapSprites(0);
         secondSkill.SwapSprites(0);
     }
     if (turn % 2 == 1)
     {
         firstAttack.transform.parent.gameObject.SetActive(false);
     }
 }