Example #1
0
 public void AttachToUiHandler(LocalPlayerMotionHandler uiHandle)
 {
     this.OnJoyStickTouchBegin += uiHandle.JoyStickBegin;
     this.OnJoyStickTouchMove  += uiHandle.JoyStickMove;
     this.OnJoyStickTouchEnd   += uiHandle.JoyStickEnd;
     this.OnJoyStickClick      += uiHandle.JoyStickClick;
 }
Example #2
0
 public void AttachToUiHandler(LocalPlayerMotionHandler uiHandle)
 {
     foreach (UIJoyButton btn in this.mBtnList)
     {
         btn.AttachToUiHandler(uiHandle);
     }
 }
Example #3
0
    void Start()
    {
        //测试入口
        LocalPlayerMotionHandler playerHandler = GameObject.FindGameObjectWithTag("Player").GetComponent <LocalPlayerMotionHandler>();

        this.AttachToUiHandler(playerHandler);
        this.AttachToUiHandler(playerHandler);
    }
Example #4
0
 public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     this.mCallBackFrameQueue = new Queue<StateCallBackFrame>();
     for (int i = 0; i < this.mCallBackFrames.Count; ++i)
     {
         this.mCallBackFrameQueue.Enqueue(this.mCallBackFrames[i]);
     }
     this.mLocalMotion = animator.GetComponent<LocalPlayerMotionHandler>();
 }
Example #5
0
 public void AttachToUiHandler(LocalPlayerMotionHandler uiHandle)
 {
     this.mCallBackFunction = uiHandle.OnUiJoyButtonEvent;
 }