Added registries
This commit is contained in:
@@ -21,11 +21,11 @@ namespace InterfaceOff
|
||||
Components.InfoText.text = "Rotate";
|
||||
|
||||
/* Creates the images to rotate */
|
||||
Sprite[] sprites = CanvasManager.Instance.Images.GetRandomSpriteSet();
|
||||
Sprite[] sprites = ImageRegistry.GetRandomSpriteSet();
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
/* Fetches/Creates needed components */
|
||||
GameObject go = Instantiate(CanvasManager.Instance.ImagePrefab, transform);
|
||||
GameObject go = Instantiate(PrefabRegistry.Instance.ImagePrefab, transform);
|
||||
RectTransform t = go.GetComponent<RectTransform>();
|
||||
|
||||
t.sizeDelta = new Vector2(80, 80);
|
||||
|
||||
Reference in New Issue
Block a user