• 背包_MouseTextureHanding


    function Start()
    {
      transform.GetComponent(GUITexture).enabled = false;
    }

    function Update ()
    {
       transform.position = Vector3(Input.mousePosition.x/Screen.width,Input.mousePosition.y/Screen.height,0);
    }

    function ReleaseCursorIcon()
    {
        transform.GetComponent(GUITexture).enabled = false;
     Screen.showCursor = true;
    }

    function SetCursor(t : Texture)
    {
        transform.GetComponent(GUITexture).texture = t;
     transform.GetComponent(GUITexture).enabled = true;
     Screen.showCursor = false;
     
    }

  • 相关阅读:
    2021-4-1 日报博客
    2021-3-31 日报博客
    2021-3-30 日报博客
    2021-3-29 日报博客
    2021-3-27 周报博客
    java
    周末总结六
    java
    java
    java
  • 原文地址:https://www.cnblogs.com/softimagewht/p/2172978.html
Copyright © 2020-2023  润新知