void Start() { characterBody = character.GetComponent <Rigidbody2D>(); gameController = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameController>(); MagnetsUI = GameObject.FindGameObjectWithTag("collect").GetComponent <magnetsUI>(); scores = GameObject.FindGameObjectWithTag("GameController").GetComponent <score>(); }
void Start() { movement = GameObject.FindGameObjectWithTag("character").GetComponent <Movement>(); magnetsUI = GameObject.FindGameObjectWithTag("collect").GetComponent <magnetsUI>(); timeLeftX(); timeLeftS(); timeLeftM(); timeLeftB(); }