public void ChangeWorld(byte id) { if (dt.PurchasedLocation[id] == true) { CurrentWorld = (CurrentMine)id; print((CurrentMine)id); MineObj.GetComponent <Image>().sprite = BackGroundImages[id]; switch (CurrentWorld) { } } else { BuyNewWorld(id); } }
private void Start() { CurrentWorld = CurrentMine.Standart; dt = GetComponent <DataManager>(); MineObj.GetComponent <Image>().sprite = BackGroundImages[9]; }