public void CreateCharacter(string _camp, string _type, string _rarity) { SimpleAttr _attr = new SimpleAttr(_camp, _type, _rarity); SimpleCharacter _chr = new SimpleCharacter(_attr, GetUnityEngineHelper().GetItemInResource("unit/" + _camp + "/" + _type + "/" + _rarity)); SimpleMediator.GetInstance().GetCampSystem().AddUnit(_camp, _chr); }
public void SetState(SimpleState state) { m_stateIsBegin = false; LoadScene(state.GetSceneName()); SimpleMediator.GetInstance().Release(); if (m_state != null) { m_state.StateEnd(); } m_state = state; }
protected SimpleMediator GetMediator() { return(SimpleMediator.GetInstance()); }
private void OnApplicationQuit() { SimpleMediator.GetInstance().Exit(); }
// Use this for initialization private void Start() { SimpleMediator.GetInstance().Initialize(); Control.SetState(new State_00_Main(Control)); }