void Start() { player = GameObject.Find("Player"); poi = transform.GetComponent<PointOfInterest>(); poigui = Camera.mainCamera.GetComponent<POIGUI>(); InvokeRepeating("calculateClosestPOI", 0.0f, 1.0f); }
void Start() { shopWindow = new Rect(Screen.width/2 - shopWindowWidth/2, Screen.height/2 - shopWindowHeight/2, shopWindowWidth, shopWindowHeight); scrollView = new Vector2(0,0); poigui = transform.GetComponent<POIGUI>(); player = GameObject.Find("Player"); inventory = player.GetComponentInChildren<InventoryManager>(); itemView = new List<GameObject>(); itemWind = new List<Rect>(); for (int i = 0; i < 9; i++) { itemWind.Add(new Rect(Screen.width/4, Screen.height/2, 200, 200)); } initTradeList(); }
void Start() { poigui = transform.GetComponent<POIGUI>(); player = GameObject.Find("Player"); }