예제 #1
0
 public void Initialize(TankTypesScriptable t)
 {
     tankName = t.tankName;
     speed    = t.speed / 2;
     damage   = t.damage;
     health   = t.health;
 }
 public void Initialize(TankTypesScriptable t, Joystick jt, Button b, List <Image> bullets, Transform lr)
 {
     tankName    = t.tankName;
     speed       = t.speed;
     damage      = t.damage;
     health      = t.health;
     joystick    = jt;
     shootButton = b;
     ammo        = bullets;
     lineTarget  = lr;
     EventsManager.Instance.ExecuteHealthEvent(health);
 }