예제 #1
0
        protected virtual void BeginRandomRotation(RandomRotation data, RandomRotation group)
        {
            var handler = new BeginRandomRotation();

            handler.System = this;
            handler.Event  = data;
            handler.Group  = group;
            StartCoroutine(handler.Execute());
        }
예제 #2
0
        protected void BeginRandomRotationFilter(RandomRotation data)
        {
            var GroupRandomRotation = RandomRotationManager[data.EntityId];

            if (GroupRandomRotation == null)
            {
                return;
            }
            if (!GroupRandomRotation.Enabled)
            {
                return;
            }
            this.BeginRandomRotation(data, GroupRandomRotation);
        }