|
@ -7,7 +7,7 @@ using System; |
|
|
|
|
|
|
|
|
public class Recipe : MonoBehaviour { |
|
|
public class Recipe : MonoBehaviour { |
|
|
|
|
|
|
|
|
public Player localPlayer; |
|
|
|
|
|
|
|
|
Player localPlayer; |
|
|
int PlayerCount; |
|
|
int PlayerCount; |
|
|
public Vegetable[] Veggies; |
|
|
public Vegetable[] Veggies; |
|
|
public Frame[] Frames; |
|
|
public Frame[] Frames; |
|
@ -31,7 +31,11 @@ public class Recipe : MonoBehaviour { |
|
|
Frames[i].VegetableSpot.sprite = Veggies[i].Image; |
|
|
Frames[i].VegetableSpot.sprite = Veggies[i].Image; |
|
|
Frames[i].Qty.text = Qtys[i] + ""; |
|
|
Frames[i].Qty.text = Qtys[i] + ""; |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
localPlayer = Multiplayer.PlayersManager.Instance.LocalPlayer.GetComponent<Player>(); |
|
|
|
|
|
PlayerCount = Multiplayer.PlayersManager.Instance.RemotePlayers.Count + 1; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//Button calls
|
|
|
//Button calls
|
|
|
public void OpenRecipe() |
|
|
public void OpenRecipe() |
|
|