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); }
public void Clear() { _transition = null; }