Exemplo n.º 1
0
 private void OnMessageStart(ScenarioEngine.EventData data)
 {
     if (data.gameObject != gameObject)
     {
         return;
     }
     //Debug.Log("OnMessageStart" + data.displayName);
     ExampleCommon.RotateByForce(gameObject, true);
 }
Exemplo n.º 2
0
        private void OnMessageEnd(ScenarioEngine.EventData data)
        {
            if (data.gameObject != gameObject)
            {
                return;
            }

            //Debug.Log("OnMessageEnd" + data.displayName);
            ScenarioEngine.Instance.OnMessageStart -= OnMessageStart;
            ScenarioEngine.Instance.OnMessageEnd   -= OnMessageEnd;
            ScenarioEngine.Instance.OnUserInput    -= OnUserInput;
            ExampleCommon.RotateByForce(gameObject, false);
        }