Ejemplo n.º 1
0
 void Start()
 {
     inputBuffer = new List<predictionStruct>();
     cam = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<OmniCamera>();
     inventoryManager = GameObject.FindGameObjectWithTag("Inv").GetComponent<OmniInventory>();
     lastPos = Vector3.zero;
     instance = this;
 }
Ejemplo n.º 2
0
    void Start()
    {
        x = margin;
        y = margin;
        width = Screen.width - margin*2;
        height = Screen.height - margin*2;
        clickPos = new Vector2();
        InvTexture = Resources.Load<Texture>("bag");
        ratio = (float)InvTexture.height / (float)InvTexture.width;
        lX = -1;
        lY = -1;

        SetUpBounds();
        SetUpText();

        cam = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<OmniCamera>();
    }