private void Start() { canMove = true; canChange = true; soundScript = GameObject.FindGameObjectWithTag("SoundManager").GetComponent <SoundManager>(); universeScript = GameObject.Find("UniversalManager").GetComponent <UniversalVarHolder>(); targetPosition = transform.position; }
// Start is called before the first frame update void Start() { universeScript = GameObject.Find("UniversalManager").GetComponent <UniversalVarHolder>(); }