コード例 #1
0
 void Start()
 {
     fishMovement   = GetComponent <FishMovement>();
     fishOxygen     = GetComponent <FishOxygen>();
     fishIndicators = GetComponent <FishIndicators>();
     rb             = GetComponent <Rigidbody>();
     respawning     = false;
     wonLevel       = false;
 }
コード例 #2
0
ファイル: FishMovement.cs プロジェクト: opdev1004/flippyfish
 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);
 }