예제 #1
0
        public bool StartTransitionFrom(ModuleTypes fromModuleType, ModuleTypes toModuleType)
        {
            AbstractMovementModule fromModule = GetModule(fromModuleType);
            AbstractMovementModule toModule   = GetModule(toModuleType);

            if (null == fromModule)
            {
                return(false);
            }
            if (null == toModule)
            {
                return(false);
            }
            _transition = new MovementTransition(fromModule, toModule);
            _anim.Play(fromModule.GetTransitionFromAnimationName());
            return(true);
        }
예제 #2
0
 public void Clear()
 {
     _transition = null;
 }