Example #1
0
 public MainConfig()
 {
     PlayerUnit  = new UnitPrototype();
     EnemyUnit   = new UnitPrototype();
     EnemyBase   = new BasePrototype();
     PlayerBase  = new BasePrototype();
     NeutralBase = new BasePrototype();
     PlayerTower = new TowerPrototype();
     EnemyTower  = new TowerPrototype();
 }
Example #2
0
        private void CreateFromPrototype()
        {
            UnitPrototype proto = SaveDataManager.instance.GetUnitPrototype(side);

            if (proto != null)
            {
                maxHP               = proto.maxHP;
                currentHP           = maxHP;
                attack.damage       = proto.Damage;
                attack.damageRate   = proto.DamageRate;
                attack.attackRadius = proto.AttackRadius;
                move.maxSpeed       = proto.maxSpeed;
            }
        }