show() public method

public show ( GameObject previous_state ) : void
previous_state GameObject
return void
示例#1
0
 // Use this for initialization
 void OnGUI()
 {
     if (GUI.Button(new Rect(10, 15, 130, 65), "String", button_style))
     {
         IDE ide = (GameObject.Find("IDE").GetComponent("IDE") as IDE);
         ide.SetInput(input);
         ide.show(gameObject);
     }
 }
示例#2
0
    public override void DroppedOnInventory(Vector3 mousePosition)
    {
        on_drag = false;
        SetHidden(false);
        if ((Time.time - time_started) < 0.5f)
        {
            if (isEmpty())
            {
                return;
            }

            IDEInput input = getIDEInput();
            IDE      ide   = (GameObject.Find("IDE").GetComponent("IDE") as IDE);
            ide.SetInput(input);
            ide.show(GameObject.Find("Inventory"));
        }
    }