Skip to content

Instantly share code, notes, and snippets.

@Avonexile
Avonexile / SelectionManager.cs
Last active Nov 13, 2018
This script is about putting items in slots
View SelectionManager.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
namespace CraftingSystemRework
{
public class SelectionManager : MonoBehaviour {
@Avonexile
Avonexile / CraftResult.cs
Created Nov 13, 2018
This show the crafting result if there is one
View CraftResult.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace CraftingSystemRework
{
public class CraftResult : MonoBehaviour {
Image thisImage;
@Avonexile
Avonexile / CraftManager.cs
Created Nov 13, 2018
The crafting manager shows if the crafting slots have items in them and what happens
View CraftManager.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace CraftingSystemRework
{
public class CraftManager : MonoBehaviour {
public int item1ID;
@Avonexile
Avonexile / CraftingRecipes.cs
Last active Nov 13, 2018
The crafting recipes and the recipe class
View CraftingRecipes.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace CraftingSystemRework
{
[System.Serializable]
public class Recipes
{
//this is so i can make a list of crafting recipes
@Avonexile
Avonexile / Slot.cs
Last active Nov 4, 2018
Slot script for the slots of my Tic-Tac-Toe
View Slot.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System;
public class Slot : MonoBehaviour {
//this buttons text child
public Text myText;
@Avonexile
Avonexile / BoardManager.cs
Last active Nov 4, 2018
Tic-Tac-Toe BoardManager
View BoardManager.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class BoardManager : MonoBehaviour {
//a list of the slots for easy access in script
public List<Slot> slotsManual = new List<Slot>();
@Avonexile
Avonexile / UIManager.cs
Last active Oct 30, 2018
UI Manager I made in Save The Trees
View UIManager.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using TMPro;
public class UIManager : MonoBehaviour {
//singleton
You can’t perform that action at this time.