Ejemplo n.º 1
0
        public void Rotate(float dir)
        {
            if (ControlDisabled.IsIn())
            {
                return;
            }

            wantYAngle += dir;
            BaseMathUtils.WrapAngle(wantYAngle);
        }
Ejemplo n.º 2
0
        public void Start()
        {
            DesktopMoveDragSpeed = desktopMoveDragSpeed;
            DesktopMoveSpeed     = desktopMoveSpeed;

            objectPos   = CalculateCurrentObjectPosition();
            scrollValue = Mathf.Clamp01(scrollValue);
            objectPos.y = scrollHigh.Evaluate(scrollValue);
            wantXAngle  = scrollXAngle.Evaluate(scrollValue);

            Vector3 rot = selfT.eulerAngles;

            rot.x             = BaseMathUtils.WrapAngle(rot.x);
            rot.y             = BaseMathUtils.WrapAngle(rot.y);
            wantYAngle        = rot.y;
            rot.x             = scrollXAngle.Evaluate(scrollValue);
            wantXAngle        = rot.x;
            selfT.eulerAngles = rot;

            ScreenEdgeMovementControl(screenEdgeMovementControl);
            MouseDragControl(mouseDragControl);
            MouseScrollControl(mouseScrollControl);
        }
Ejemplo n.º 3
0
 protected override Status OnDo()
 {
     _doAction = BaseMathUtils.RandArray(_action);
     return(_doAction.Invoke());;
 }
Ejemplo n.º 4
0
 protected void PlayAudio(string[] id)
 {
     SelfBaseGlobal.AudioMgr.PlayUI(BaseMathUtils.RandArray(id), false);
 }