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

SendMessageUpwards() public méthode

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

Same methods

GameObject::SendMessageUpwards ( string methodName, SendMessageOptions options ) : void
GameObject::SendMessageUpwards ( string methodName, System value ) : void
GameObject::SendMessageUpwards ( string methodName, System value, SendMessageOptions options ) : void

Usage Example

Exemple #1
0
 private void Press(Vector2 screenPos)
 {
     lastGo = RaycastObject(screenPos);
     if (lastGo != null)
     {
         lastGo.SendMessageUpwards("OnPress", SendMessageOptions.DontRequireReceiver);
     }
 }
All Usage Examples Of UnityEngine.GameObject::SendMessageUpwards