Beispiel #1
0
 //释放AnimationCallBackMode下的控制,由控制鼠标的道具来调用
 public void FreeControlOfMouse_AnimationCallBackMode()
 {
     Destroy(downAnimation);
     Destroy(normalAnimation);
     mouseState                    = MouseState.DefaultState;
     mouseCallBackMode             = MouseCallBackMode.defaultCallBackMode;
     theMouseSpriteRenderer.sprite = defaultMouseSprite;
     SetSelf_DefaultCallBackMode();
 }
Beispiel #2
0
    //设置鼠标被道具控制,AnimationCallBackMode模式
    public void SetMouseController_AnimationCallBackMode(NormalUIPropWithMouseAnimation theMouseControllor)
    {
        normalUIPropControllerWithMouseAnimation = theMouseControllor;
        mouseState        = MouseState.ControlByObj;
        mouseCallBackMode = MouseCallBackMode.AnimationCallBackMode;
        //theAnimationMouse.SetActive(true);
        theMouseSpriteRenderer.color = zeroColor;
        downAnimation   = Instantiate(theMouseControllor.GetDownClip(), theMouse.transform);
        normalAnimation = Instantiate(theMouseControllor.GetNormalClip(), theMouse.transform);

        ToNotDown_AnimationCallBackMode();
    }
Beispiel #3
0
    //设置鼠标被道具控制,DefaultCallBackMode模式
    public void SetMouseController_DefaultCallBackMode(NormalUIPropWithMouse mouseController, bool isSetNormalColor, bool isSetOverColor, bool isSetDownColor)
    {
        tempMouseController          = mouseController;
        mouseState                   = MouseState.ControlByObj;
        mouseCallBackMode            = MouseCallBackMode.defaultCallBackMode;
        isMouseManagerSetNormalColor = isSetNormalColor;
        isMouseManagerSetOverColor   = isSetOverColor;
        isMouseManagerSetDownColor   = isSetDownColor;


        SetSelf_DefaultCallBackMode();
    }