private void Awake() { playerId = GetComponent <InputReceiver>().playerId; pingSpawner = GetComponent <PingSpawner>(); particleGenerator = GetComponent <HitParticleGenerator>(); screenShake = Camera.main.GetComponent <ScreenShake>(); }
private void Awake() { input = GetComponent <InputReceiver>(); rb = GetComponent <Rigidbody2D>(); manager = GetComponent <SidescrollerControlManager>(); pingSpawner = GetComponent <PingSpawner>(); screenShake = Camera.main.GetComponent <ScreenShake>(); doubleJumpsLeft = maxDoubleJumps; }
private void Awake() { input = GetComponent <InputReceiver>(); if (projectileSpawner == null) { projectileSpawner = GetComponent <ProjectileSpawner>(); } pingSpawner = GetComponent <PingSpawner>(); playerSprite = GetComponent <SpriteRenderer>(); }
private void Awake() { if (hp == null) { this.enabled = false; } manager = GetComponent <SidescrollerControlManager>(); input = GetComponent <InputReceiver>(); pinger = GetComponent <PingSpawner>(); playerSprite = GetComponent <SpriteRenderer>(); screenShake = Camera.main.GetComponent <ScreenShake>(); }
private void Awake() { spawner = GetComponent <PingSpawner>(); }