private void Awake() { GameManager_PlayerDied playerDied = GameManager_Master.Instance.GetComponent <GameManager_PlayerDied>(); playerDied.LivesUI = this.gameObject; GameManager_Master.Instance.CallLivesUI(); }
private void Start() { GameManager_PlayerDied sendCanvas = GameManager_Master.Instance.GetComponent <GameManager_PlayerDied>(); sendCanvas.canvas = this.gameObject; sendCanvas.LivesUI = text; text.text = GameManager_Master.Instance.playerLives.ToString(); }