예제 #1
0
        private void OnMessageStart(ScenarioEngine.EventData data)
        {
            if (data.gameObject != gameObject)
            {
                return;
            }

            ExampleCommon.RotateByForce(gameObject, true);
        }
예제 #2
0
        private void OnMessageEnd(ScenarioEngine.EventData data)
        {
            if (data.gameObject != gameObject)
            {
                return;
            }

            ScenarioEngine.Instance.OnMessageStart -= OnMessageStart;
            ScenarioEngine.Instance.OnMessageEnd   -= OnMessageEnd;

            ExampleCommon.RotateByForce(gameObject, false);
        }