Пример #1
0
        public override void Activate()
        {
            HP hp = FindObjectOfType <Player>().GetComponent <HP>();

            hp.DealHP(value);

            if (isDestroying)
            {
                FindObjectOfType <Player>().currentTile.DestroyTileObject();
            }
        }