Exemplo n.º 1
0
    IEnumerator ReturnTank(TankController tankController)
    {
        yield return(new WaitForSeconds(5f));

        tankController.Disable();
        servicePoolTank.ReturnItem(tankController);
    }
 public void Disable()
 {
     healthBar.SetVisible(false);
     tankController.Disable();
     boxCollider2D.enabled = false;
 }