Ejemplo n.º 1
0
 void Start()
 {
     if (objectType == ObectType.BOSS) {
         hitDel = transform.root.GetComponent<Boss> ().Hurt;
     } else if (objectType == ObectType.COWMAN) {
             hitDel = transform.root.GetComponent<Boss_cowMan> ().Hurt;
     } else if (objectType == ObectType.HELICOPTER) {
             hitDel = transform.root.GetComponent<Vehicle> ().Hurt;
     } else if (objectType == ObectType.PILOT) {
         hitDel = transform.root.GetComponent<Vehicle> ().PilotHurt;
     }
 }
Ejemplo n.º 2
0
 void Start()
 {
     if (objectType == ObectType.BOSS)
     {
         hitDel = transform.root.GetComponent <Boss> ().Hurt;
     }
     else if (objectType == ObectType.COWMAN)
     {
         hitDel = transform.root.GetComponent <Boss_cowMan> ().Hurt;
     }
     else if (objectType == ObectType.HELICOPTER)
     {
         hitDel = transform.root.GetComponent <Vehicle> ().Hurt;
     }
     else if (objectType == ObectType.PILOT)
     {
         hitDel = transform.root.GetComponent <Vehicle> ().PilotHurt;
     }
 }