UnityEngine.GameObject.BroadcastMessage C# (CSharp) Méthode

BroadcastMessage() public méthode

public BroadcastMessage ( string methodName ) : void
methodName string
Résultat void
		public void BroadcastMessage(string methodName){}
		public void BroadcastMessage(string methodName, SendMessageOptions options){}

Same methods

GameObject::BroadcastMessage ( string methodName, SendMessageOptions options ) : void
GameObject::BroadcastMessage ( string methodName, System parameter ) : void
GameObject::BroadcastMessage ( string methodName, System parameter, SendMessageOptions options ) : void

Usage Example

Exemple #1
1
 protected void ShotHit(GameObject target)
 {
     if (target != null) { target.BroadcastMessage("TakeDamage", damage); }
 }
All Usage Examples Of UnityEngine.GameObject::BroadcastMessage