Example #1
0
 private void Awake()
 {
     _instance = this;
 }
Example #2
0
    // Start is called before the first frame update

    public void ItemSelected(ItemsRecipes recipe)
    {
        additionalCanvas.GetComponent <ControllerGeneralPanels>().SetActivePanel(3);
    }
 private void OnDisable()
 {
     currentUpgradeRecipe = null;
     currentItemRecipe    = null;
 }
Example #4
0
    public void AddItemButton()
    {
        recipe = GetComponent <AddRecipeOnScript>().CurrentItemRecipe;

        AddItem(recipe.ItemID, DateTime.UtcNow.Add(new TimeSpan(0, 0, recipe.SecondToCraft)));
    }
 public void SetRecipe(ItemsRecipes recipe)
 {
     currentItemRecipe = recipe;
 }