public void Initialize() { if (playerDeck == null) { playerDeck = GetComponent <CardStack>(); if (playerDeck == null) { throw new System.NullReferenceException("playerDeck CardStack not found."); } } playerDeck.Initialize(); gameController = FindObjectOfType <RummyGameController>(); if (gameController == null) { throw new System.NullReferenceException("Game Controller not found."); } stateMachine = new FiniteStateMachine <RummyPlayerController>(); stateMachine.Configure(this, RummyPlayerIdleState.Instance); }
public override void Update(RummyGameController entity) { }
public override void Exit(RummyGameController entity) { }
public override void Enter(RummyGameController entity) { entity.Initialize(); }
public override void Exit(RummyGameController entity) { entity.EndPlayerTurn(); }
public override void Enter(RummyGameController entity) { entity.StartPlayerTurn(); }