void Start() { input = GetComponent <InputRouter>(); tintManager = GetComponent <TintManager>(); playerStatusDisplay = transform.Find("StatusCanvas")?.GetComponent <PlayerStatusDisplay>(); playerStatusDisplay.Life = Life; playerStatusDisplay.Player = "P" + input.PlayerId; // Life = lifeBase; }
// Use this for initialization virtual protected void Start() { input = GetComponent <InputRouter>(); playerId = input.PlayerId; playerMovement = GetComponent <PlayerMovement>(); playerMana = GetComponent <PlayerMana>(); animationManager = GetComponent <AnimationManager>(); playerCondition = GetComponent <PlayerCondition>(); tintManager = GetComponent <TintManager>(); playerStatusDisplay = transform.Find("StatusCanvas")?.GetComponent <PlayerStatusDisplay>(); // Debug.Log("playerstatusdisplau" + playerStatusDisplay); }