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

BroadcastMessage() public méthode

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

Same methods

GameObject::BroadcastMessage ( string methodName ) : void
GameObject::BroadcastMessage ( string methodName, SendMessageOptions options ) : void
GameObject::BroadcastMessage ( string methodName, System parameter ) : 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