//Start animation sequence
    public void StartAnimation(Ani.Animate AnimateMode, GameObject CallbackObj, object CallbackMsg, object CallbackParams)
    {
        //Wrapper function
        switch (AnimateMode)
        {
        case Ani.Animate.OneShot:
            pAnimator.StartAnimation(Ani.Animate.OneShot, CallbackObj, CallbackMsg, CallbackParams);
            break;

        case Ani.Animate.Loop:
            pAnimator.StartAnimation(Ani.Animate.Loop, CallbackObj, CallbackMsg, CallbackParams);
            break;
        }
    }
Ejemplo n.º 2
0
    //Start animation sequence
    public bool StartAnimation(Ani.Animate ModeType, GameObject CallbackObj, object CallbackMsg, object CallbackParams)
    {
        //Start animation is we're not already animating
        if (mAnimating == false)
        {
            mAnimating      = true;
            mCallbackObj    = CallbackObj;
            mCallbackMsg    = (string)CallbackMsg;
            mCallbackParams = CallbackParams;
            mAnimateMode    = ModeType;
            StartCoroutine(Animator());
            return(true);
        }

        return(false);
    }
    //Start animation sequence
    public bool StartAnimation(Ani.Animate Mode, GameObject CallbackObj, object CallbackMsg, object CallbackParams)
    {
        //Start animation is we're not already animating
        if (mAnimating == false)
        {
            //Must be active to start coroutine
            gameObject.active = true;

            mAnimating      = true;
            mCallbackObj    = CallbackObj;
            mCallbackMsg    = (string)CallbackMsg;
            mCallbackParams = CallbackParams;
            mAnimateMode    = Mode;
            StartCoroutine(AnimateEngine());
            return(true);
        }

        return(false);
    }
Ejemplo n.º 4
0
    //Start animation sequence
    public bool StartAnimation(Ani.Animate ModeType, GameObject CallbackObj, object CallbackMsg, object CallbackParams)
    {
        //Start animation is we're not already animating
        if (mAnimating == false)
        {
            mAnimating = true;
            mCallbackObj = CallbackObj;
            mCallbackMsg = (string) CallbackMsg;
            mCallbackParams = CallbackParams;
            mAnimateMode = ModeType;
            StartCoroutine(Animator());
            return true;
        }

        return false;
    }
Ejemplo n.º 5
0
    //Start animation sequence
    public bool StartAnimation(Ani.Animate Mode, GameObject CallbackObj, object CallbackMsg, object CallbackParams)
    {
        //Start animation is we're not already animating
        if (mAnimating == false)
        {
            //Must be active to start coroutine
            gameObject.active = true;

            mAnimating = true;
            mCallbackObj = CallbackObj;
            mCallbackMsg = (string) CallbackMsg;
            mCallbackParams = CallbackParams;
            mAnimateMode = Mode;
            StartCoroutine(AnimateEngine());
            return true;
        }

        return false;
    }