示例#1
0
        protected override void _React(MAnimal animal)
        {
            switch (type)
            {
            case Gravity_Reaction.Enable:
                animal.UseGravity = Value;
                break;

            case Gravity_Reaction.Reset:
                animal.ResetGravityDirection();
                break;

            case Gravity_Reaction.GroundChangesGravity:
                animal.GroundChangesGravity(Value);
                break;

            case Gravity_Reaction.SnapAlignment:
                animal.AlignGravity();
                break;

            default:
                break;
            }
        }