Ejemplo n.º 1
0
 private void Awake()
 {
     playerId          = GetComponent <InputReceiver>().playerId;
     pingSpawner       = GetComponent <PingSpawner>();
     particleGenerator = GetComponent <HitParticleGenerator>();
     screenShake       = Camera.main.GetComponent <ScreenShake>();
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     input           = GetComponent <InputReceiver>();
     rb              = GetComponent <Rigidbody2D>();
     manager         = GetComponent <SidescrollerControlManager>();
     pingSpawner     = GetComponent <PingSpawner>();
     screenShake     = Camera.main.GetComponent <ScreenShake>();
     doubleJumpsLeft = maxDoubleJumps;
 }
Ejemplo n.º 3
0
 private void Awake()
 {
     input = GetComponent <InputReceiver>();
     if (projectileSpawner == null)
     {
         projectileSpawner = GetComponent <ProjectileSpawner>();
     }
     pingSpawner  = GetComponent <PingSpawner>();
     playerSprite = GetComponent <SpriteRenderer>();
 }
Ejemplo n.º 4
0
 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>();
 }
Ejemplo n.º 5
0
 private void Awake()
 {
     spawner = GetComponent <PingSpawner>();
 }