Пример #1
0
    protected override Action GetNewAction()
    {
        UnitFrameGUIScript script       = this.transform.parent.GetComponent <UnitFrameGUIScript>();
        PlayerStatusScript statusScript = script.GetPlayer();
        PlayerActionScript actionScript = statusScript.GetComponent <PlayerActionScript>();

        return(new SwitchTurnAction(selectionSound, continuousSound, endActionSound, actionScript));
    }
Пример #2
0
 private PlayerActionScript GetPlayerActionScript()
 {
     if (playerActionScript == null)
     {
         playerActionScript = player.GetComponent <PlayerActionScript>();
     }
     return(playerActionScript);
 }