예제 #1
0
 public void GoInvisible()
 {
     IsInvis          = true;
     collider.enabled = false;
     currentStatus    = EntityStatusState.Invis;
     for (int i = 0; i < renderers.Length; i++)
     {
         renderers[i].material = invisMaterial;
     }
 }
예제 #2
0
 public void UnInvisible()
 {
     IsInvis          = false;
     collider.enabled = true;
     currentStatus    = EntityStatusState.Normal;
     for (int i = 0; i < renderers.Length; i++)
     {
         renderers[i].material = defaultMaterial[i];
     }
 }
예제 #3
0
 // Called when the entity dies
 public virtual void Die()
 {
     if (mc != null)
     {
         mc.CanMove = false;
     }
     currentStatus    = EntityStatusState.Dead;
     collider.enabled = false;
     anim.SetTrigger("Dead");
 }