// public void initializeCanvas() { onDead(); //active canvas canvas = GetComponentInChildren <PlayerCanvas>(); if (canvas == null) { return; } canvas.Init(this); canvas.updatePlayerUI(); }