コード例 #1
0
ファイル: Inventory.cs プロジェクト: leejesslee/AlexMysterium
	void Start () {
		inventoryList = new List<Item>();
		nullItem = new Item("null",null,-1);
		holdingItem = nullItem;
		paddingFromEdge = new Vector2(Screen.width/100,Screen.width/100);
		startPosition = new Vector2(Screen.width,Screen.height);
		quest = GameObject.Find ("MasterMind").GetComponent<MessageWindow>();
		//slidyUnpacked = new Texture2D(1500,156);
		//slidyUnpacked.SetPixels(slidyThingie.GetPixels(547,1893,1500,156));
		//slidyThingie.pixelInset = new Rect(547,1893,1500,156);
		
		//seans holding item icon thingy
		mo_anim = GetComponent<Mouse_Animation>();
	}
コード例 #2
0
    void Start()
    {
        inventoryList   = new List <Item>();
        nullItem        = new Item("null", null, -1);
        holdingItem     = nullItem;
        paddingFromEdge = new Vector2(Screen.width / 100, Screen.width / 100);
        startPosition   = new Vector2(Screen.width, Screen.height);
        quest           = GameObject.Find("MasterMind").GetComponent <MessageWindow>();
        //slidyUnpacked = new Texture2D(1500,156);
        //slidyUnpacked.SetPixels(slidyThingie.GetPixels(547,1893,1500,156));
        //slidyThingie.pixelInset = new Rect(547,1893,1500,156);

        //seans holding item icon thingy
        mo_anim = GetComponent <Mouse_Animation>();
    }