// Start is called before the first frame update void Start() { reference = GameObject.Find("References").GetComponent <ReferencesScript>(); dialogueBox = reference.dialogueBox; handSlot = reference.handSlot; hand = GameObject.Find("HandPos"); anim = transform.GetChild(0).GetComponent <Animator>(); }
// Start is called before the first frame update void Start() { reference = GameObject.Find("References").GetComponent <ReferencesScript>(); pMov = GetComponent <PlayerMovement>(); pISys = GetComponent <PlayerInteractionSystem>(); messageHolder = reference.dialogueBox; textHolder = messageHolder.transform.GetChild(0).GetComponent <Text>(); UI = reference.UI; hunger = 100; thirst = 100; money = 0; }
private void Awake() { Instance = this; }
// Start is called before the first frame update void Start() { reference = GameObject.Find("References").GetComponent <ReferencesScript>(); done = false; }