public TankFire(ITankInput tankInput, Transform tankShootPoint, TankProperty property, Animator fireAnimator, Team team) { this.tankInput = tankInput; this.tankShootPoint = tankShootPoint; this.property = property; this.fireAnimator = fireAnimator; this.team = team; reloadTimer = new ScaledTimer(property.ReloadTime, false); Bullet = (GameObject)Resources.Load("prefabs/Bullet", typeof(GameObject)); }
public TankHealth(TankProperty property) { this.property = property; currentHealth = property.health; }
public TankHeadRotate(ITankInput tankInput, GameObject tankHead, TankProperty property) { this.tankInput = tankInput; this.tankHead = tankHead; this.property = property; }
public TankEngine(ITankInput tankInput, Transform tank, TankProperty property) { this.tankInput = tankInput; this.tank = tank; this.property = property; }