Exemplo n.º 1
0
 void Start()
 {
     fishMovement   = GetComponent <FishMovement>();
     fishOxygen     = GetComponent <FishOxygen>();
     fishIndicators = GetComponent <FishIndicators>();
     rb             = GetComponent <Rigidbody>();
     respawning     = false;
     wonLevel       = false;
 }
Exemplo n.º 2
0
 void Start()
 {
     fishIndicators  = GetComponent <FishIndicators>();
     powerBar        = GetComponent <PowerBar>();
     rb              = GetComponent <Rigidbody>();
     respawnRotation = transform.rotation;
     respawnPosition = transform.position;
     isGrounded      = false;
     inControl       = true;
     canceledClick   = false;
     SetJump(0);
 }