Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     playerInput = GetComponent <PlayerInputComponent>();
     settings    = GetComponent <PlayerSettings>();
     physics     = GetComponent <PlayerPhysics>();
     boost       = GetComponent <PlayerBoost>();
 }
 // Start is called before the first frame update
 void Start()
 {
     boostSystem = GetComponent <PlayerBoost>();
     if (boostSystem.boosting)
     {
         BoostEngineParticleSystem.Play();
     }
     else
     {
         BoostEngineParticleSystem.Stop();
     }
 }