void Start() { inputHandler = GetComponent <InputHandler>(); anim = GetComponentInChildren <Animator>(); playerLocomotion = GetComponent <PlayerLocomotion>(); interactableUI = FindObjectOfType <InteractUI>(); }
// Start is called before the first frame update void Start() { myCursor = GetComponent <InteractUI>(); rg = GetComponent <Rigidbody2D>(); if (rg == null) { rg = gameObject.AddComponent <Rigidbody2D>(); } }
void Awake() { Instance = this; }
void Start() { interactUI = GameManager.instance.interactUI; }
private void Awake() { instance = this; }