private void TryStopTotem(Totem totem) { TotemPhantom phantomTotem = totem.GetComponent<TotemPhantom>(); if (phantomTotem == null) StopTotem(totem); else Debug.Log("Hitted by a phantom totem, its ok!"); }
private void TryToFillHole(Totem totem) { TotemHoleFiller holeFiller = totem.GetComponent<TotemHoleFiller>(); if (holeFiller != null && holeType == totem.Type) { FillHole(totem); return; } totem.Stop(); totem.transform.DOKill(); Debug.Log("Hit a totem, but it was not of the same type of the hole"); GameManager.Instance.Lose(); }