Ejemplo n.º 1
0
 void OnTriggerStay(Collider col)
 {
     if (isBuildPlayer && col.gameObject.tag == "EnergyBlade")
     {
         EnergyBlade otherBlade = col.gameObject.GetComponent <EnergyBlade>();
         if (otherBlade != null && !otherBlade.Equals(leftBlade) && !otherBlade.Equals(rightBlade) && otherBlade.IsOffensive() && !damaged)
         {
             StartCoroutine(HitByBlade());
         }
     }
 }
Ejemplo n.º 2
0
 void OnTriggerStay(Collider col)
 {
     if (col.gameObject.tag == "EnergyBlade")
     {
         EnergyBlade otherBlade = col.gameObject.GetComponent <EnergyBlade>();
         if (!otherBlade.Equals(pc.GetLeftBlade()) && otherBlade.IsOffensive() && !damaged)
         {
             StartCoroutine(pc.HitByBlade());
         }
     }
 }