void Start() { rb2d = GetComponent <Rigidbody2D> (); rb2d.freezeRotation = true; tmpt.GetComponent <TextMeshProUGUI>().SetText("Jumps: {0}", TotalJumps); soundFXHandler = this.gameObject.GetComponent <SoundFXHandler>(); }
private void Awake() { if (_instance != null && _instance != this) { Destroy(gameObject); } else { _instance = this; } }