void Awake() { if (current == null) { current = this; m_animator = this.GetComponent <Animator>(); } else { Destroy(this.gameObject); } }
// Start is called before the first frame update void Start() { livesText = this.GetComponent <TextMeshProUGUI>(); playerComponent = GameObject.Find("Player").GetComponent <D_PlayerTestScript>(); }