UnityEngine.MonoBehaviour.InvokeRepeating C# (CSharp) Method

InvokeRepeating() public method

public InvokeRepeating ( string methodName, float time, float repeatRate ) : void
methodName string
time float
repeatRate float
return void
        public void InvokeRepeating(string methodName, float time, float repeatRate)
        {
            AssertNull();
            throw new NotImplementedException();
        }
        public bool IsInvoking()

Usage Example

コード例 #1
0
        void DoInvokeMethod(GameObject go)
        {
            if (go == null) return;

            component = go.GetComponent(behaviour.Value) as MonoBehaviour;

            if (component == null)
            {
                LogWarning("InvokeMethod: " + go.name + " missing behaviour: " + behaviour.Value);
                return;
            }

            if (repeating.Value)
                component.InvokeRepeating(methodName.Value, delay.Value, repeatDelay.Value);
            else
                component.Invoke(methodName.Value, delay.Value);
        }
All Usage Examples Of UnityEngine.MonoBehaviour::InvokeRepeating