UnityEngine.GameObject.BroadcastMessage C# (CSharp) Method

BroadcastMessage() public method

public BroadcastMessage ( string methodName ) : void
methodName string
return 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

Example #1
1
File: Tower.cs Project: nallelcm/TD
 protected void ShotHit(GameObject target)
 {
     if (target != null) { target.BroadcastMessage("TakeDamage", damage); }
 }
All Usage Examples Of UnityEngine.GameObject::BroadcastMessage