示例#1
0
        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!");
        }
示例#2
0
        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();
        }