示例#1
0
 private void DeathFromBomb()
 {
     ExplosionEffect.GetExplosionEffect().Make();
     OnDeath?.Invoke(DeathType.DeathFromBomb);
     Destroy(gameObject);
 }
 void Start()
 {
     m_image = GetComponent <Image>();
     m_image.canvasRenderer.SetAlpha(0);
     _instance = this;
 }