Ejemplo n.º 1
0
    void CalculateStats()
    {
        TowerBase   t_base   = tower_base.GetComponent <TowerBase>();
        TowerTurret t_turret = tower_turret.GetComponent <TowerTurret>();
        TowerCore   t_core   = tower_core.GetComponent <TowerCore>();

        shot_rate   = shot_rate_base * t_base.firerate_ratio * t_turret.firerate_ratio;
        shot_radius = shot_radius_base * t_turret.radius_ratio;
        shot_damage = (int)(shot_damage_base * t_turret.damage_ratio);
        bullet_type = t_core.bullet_type;
    }
Ejemplo n.º 2
0
 public TowerTurret UpgradeTurret(CraftableItem[] parts, TowerTurret t)
 {
     return null;
 }