// Start is called before the first frame update void Start() { Rigidbody = GetComponent <Rigidbody2D>(); RocketService = GetComponent <RocketService>(); GravityService = GetComponent <GravityService>(); MainThrusterService = GetComponent <MainThrusterService>(); InitialPosition = Rigidbody.position + new Vector2(Random.Range(-30, 30), Random.Range(-30, 30)); InitialRotation = Rigidbody.rotation + Random.Range(-25, 25); }
public GuardianController(RocketService rocketService) { this.rocketService = rocketService; }