Пример #1
0
 //----------------------------------------------------------------------/
 // Methods
 //----------------------------------------------------------------------/
 /// <summary>
 /// Initializes the PlayerParty.
 /// </summary>
 void Awake()
 {
     StratusPlayerPartyBehaviour.current = this;
     // Subscribe to events
     this.gameObject.Connect <StratusCombat.StartedEvent>(this.OnCombatStartedEvent);
     this.gameObject.Connect <StratusCombat.EndedEvent>(this.OnCombatEndedEvent);
 }
Пример #2
0
 private void OnDestroy()
 {
     StratusPlayerPartyBehaviour.current = null;
 }