示例#1
0
        public void BlockBurned(Block otherBlock)
        {
            if (otherBlock.IsDestroying || _block.IsDestroying)
            {
                return;
            }

            otherBlock.Destroy();
            Detonate();
        }
示例#2
0
        public void BlockBurned(Block otherBlock)
        {
            if (otherBlock.IsDestroying)
            {
                return;
            }

            if (fireReact != null)
            {
                AudioSource.PlayClipAtPoint(fireReact, transform.position);
            }

            otherBlock.Destroy();
            _block.Destroy();
        }
示例#3
0
 public void BlockBurned()
 {
     Instantiate(particle, transform.position, Quaternion.identity);
     _block.Destroy();
 }
示例#4
0
 public void BlockBurned()
 {
     Detonate();
     _block.Destroy();
 }