private void Awake() { //Screen.SetResolution(960, 540, false); if (instance == null) { instance = this; } else { Destroy(gameObject); } charDatabase.BuildDatabase(); skillDatabase.BuildDatabase(); typeDatabase.BuildDatabase(); itemDatabase.BuildDatabase(); party.BuildParty(partyLevel); inventory.BuildInventory(); battle = GetComponent <BattleManager>(); combat = GetComponent <CombatManager>(); ui = GetComponent <UIManager>(); InitSM(); }
public AttackCommand(BattleChar instigator, DamageItem item) : base(instigator) { this.item = item; battle = game._battle; combat = game._combat; ui = game._ui; typeDatabase = game._typeDatabase; normalDelay = battle._delay; smallDelay = 0.33f * normalDelay; commandType = CommandType.Item; }
public AttackCommand(BattleChar instigator, AttackSkill skill) : base(instigator) { this.skill = skill; battle = game._battle; combat = game._combat; ui = game._ui; typeDatabase = game._typeDatabase; normalDelay = battle._delay; smallDelay = 0.33f * normalDelay; commandType = CommandType.Skill; }