private void SetTankActive(bool active) { m_Collider.enabled = active; m_TankRenderers.SetActive(active); m_HealthCanvas.SetActive(active); m_AimCanvas.SetActive(active); m_LeftDustTrail.SetActive(active); m_RightDustTrail.SetActive(active); m_TankSetup.ActivateCrown(active); }
private void SetTankActive(bool active) { m_Collider.enabled = active; m_TankRenderers.SetActive(active); m_HealthCanvas.SetActive(active); m_AimCanvas.SetActive(active); m_LeftDustTrail.SetActive(active); m_RightDustTrail.SetActive(active); if (active) { m_Manager.EnableControl(); } else { m_Manager.DisableControl(); } m_Setup.ActivateCrown(active); }