Пример #1
0
        private void Start()
        {
            body         = GetComponent <Rigidbody2D>();
            collider     = GetComponent <BoxCollider2D>();
            landPosition = transform.position;

            flySystem         = new FlySystem();
            groundCheckSystem = new GroundCheckSystem();

            flySystem.SetupForces(_initialImpulse, _thrusterForce);
            flySystem.SetupFuel(_maxFuel, _impulseCost);
        }