private HymirEncounter myBrother; // store reference to Hymir public GymirEncounter(GameSession ses, HymirEncounter myBrother) : base(ses) { parentSession = ses; Name = "interaction0003"; this.myBrother = myBrother; // set reference to Hymir currentState = new GymirInitialState(); }
public void ChangeState(GymirState newState, bool isCompleted = false) { currentState = newState; if (isCompleted) { Complete = true; // while changing state, we may also want to set this property } }