コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        //if (false) return;
        Vector3 Pos = transform.localPosition;

        //if (true)
        //{
        Pos.x = Pos.x * 0.8f + ((Num - resultPanelMove.GetShowData) * (float)(ObjSpace)) * (0.8f) * 0.2f;
        if (FManager.IsFlick())
        {
            if (IsMoveOk())
            {
                Pos.x = ((Num - resultPanelMove.GetShowData) * (float)(ObjSpace)) * (0.8f) + (resultPanelMove.GetMousePos.x - FManager.FlickStartPos.x) * 0.25f;
            }
        }
        //}
        transform.localPosition = Pos;
    }
コード例 #2
0
    void Update()
    {
        if (MoveFlag == false)
        {
            return;
        }
        Vector3 Pos = transform.localPosition;

        if (!SelectMain.OnStageSelect)
        {
            Pos.x = Pos.x * 0.8f + ((Stage - SelectMain.selectStage) * (float)(834) / SpaceValue) * (ImageSpace) * 0.2f;
            if (FManager.IsFlick())
            {
                if (IsMoveOk())
                {
                    Pos.x = ((Stage - SelectMain.selectStage) * (float)(834) / SpaceValue) * (ImageSpace) + (selectMainMove.GetMousePos.x - FManager.FlickStartPos.x) * 0.25f;
                }
            }
        }
        transform.localPosition = Pos;
    }
コード例 #3
0
 // Update is called once per frame
 void Update()
 {
     if (FManager.IsEndFlick())
     {
         if (FEnd.y > Screen.height * 0.25f)
         {
             if (FlickVector().x > -10.0f)
             {
                 if (ShowData == 1)
                 {
                     ShowData = 0;
                 }
             }
             else if (FlickVector().x < 10.0f)
             {
                 if (ShowData == 0)
                 {
                     ShowData = 1;
                 }
             }
         }
         FStart.x = .0f;
         FStart.y = .0f;
         FStart.z = .0f;
         FEnd.x   = .0f;
         FEnd.y   = .0f;
         FEnd.z   = .0f;
     }
     else
     {
         if (FManager.IsFlick())
         {
             FStart = FManager.FlickStartPos;
             FEnd   = FManager.FlickEndPos;
         }
     }
     MousePos = Input.mousePosition;
 }