public override bool Init(string script) { if (!base.Init(script)) { return false; } GetGrowAttackFunc = GetTableFunction("GetGrowAttack"); GetAttackFunc = GetTableFunction("GetAttack"); if (GetGrowAttackFunc == null || GetAttackFunc == null) { return false; } return true; }
public override bool Init(string script) { if (!base.Init(script)) { return false; } CanUpgradeFunc = GetTableFunction("CanUpgrade"); UpgradeRequireFunc = GetTableFunction("UpgradeRequire"); UpgradeFunc = GetTableFunction("Upgrade"); if (CanUpgradeFunc == null || UpgradeRequireFunc == null || UpgradeFunc == null) { return false; } return true; }
public override bool Init(string script) { if (!base.Init(script)) { return false; } RequirementFunc = GetTableFunction("Requirement"); ExpFunc = GetTableFunction("Exp"); MoneyFunc = GetTableFunction("Money"); if (RequirementFunc == null || ExpFunc == null || MoneyFunc == null) { return false; } return true; }