void Start() { input = GetComponent <InputRouter>(); Life = lifeBase; bloodFx.Stop(); cureFx.Stop(); }
void Start() { input = GetComponent <InputRouter>(); playerMovement = GetComponent <PlayerMovement>(); playerStatusDisplay = transform.Find("StatusCanvas")?.GetComponent <PlayerStatusDisplay>(); Mana = startMana; }
// Use this for initialization protected void Start() { input = GetComponent <InputRouter>(); playerId = input.PlayerId; playerMovement = GetComponent <PlayerMovement>(); playerMana = GetComponent <PlayerMana>(); animationManager = GetComponent <SpineAnimationManager>(); }
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); }
private float maxAirSpeed = 0; // TODO void Start() { body = GetComponent <Rigidbody2D>(); Debug.Assert(body != null, "could not find player collider"); collider = GetComponent <Collider2D>(); Debug.Assert(collider != null, "could not find player collider"); input = GetComponent <InputRouter>(); Debug.Assert(collider != null, "could not find input router"); IsWallDetached = true; Rebase(); }
void Start() { animationManager = GetComponent <AnimationManager>(); inputRouter = GetComponent <InputRouter>(); }
void Start() { input = GetComponent <InputRouter>(); }
void Start() { input = GetComponent <InputRouter>(); playerMovement = GetComponent <PlayerMovement>(); Mana = manaBase; }