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