public void OnDefendButton() { if (ActiveTotem.isDefending == false) { ActiveTotem.TotemDefend(ActiveTotem); CurrbattleHUD.SetHUD(ActiveTotem); ShowDEFFloatingText(ActiveTotem.transform.position); if (ActiveTotem.totemCurrentHP <= 0) { Destroy(ActiveTotem.gameObject); } else { CurrbattleHUD.SetHUD(ActiveTotem); } return; } else { return; } }