公式リファレンスより
Component.SendMessageUpwards
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void ApplyDamage(float damage) { print(damage); } void Example() { SendMessageUpwards("ApplyDamage", 5.0F); } }
公式リファレンスより
Component.SendMessageUpwards
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void ApplyDamage(float damage) { print(damage); } void Example() { SendMessageUpwards("ApplyDamage", 5.0F); } }