// Use this for initialization private void Start() { craftingController = GameObject.FindGameObjectWithTag("PrimaryInterface").transform.Find("ItemCrafting").GetComponent <EquipmentCrafting_Controller>(); Player_Accessor_Script.DetailsScript.IsStunned = true; Player_Accessor_Script.EquipmentScript.PlayerHasControl = false; ListPositionDefault = currentRecipeTransform.GetChild(0).position; reagentController = transform.GetComponentInChildren <Reagent_Controller>(); ClearTemplate(); fields = GetComponentsInChildren <InputField>(true); }
private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); return; } }