Ejemplo n.º 1
0
 public override void _Ready()
 {
     Instance     = this;
     headRotation = new Rotation(this, true, GetChild <Spatial>(2).GetChild <Spatial>(0), true, -80, 85);
     camera       = GetChild <Spatial>(2).GetChild <Spatial>(0).GetChild <Camera>(0);
     headLamp     = camera.GetParent().GetChild <SpotLight>(2);
     bodyRotation = new Rotation(this, false, this);
     playMovement = new Momentum(this);
     playMovement.RegisterVerticalChange(HardLanding);
     anim              = GetChild <AnimationController>(8);
     size              = new SizeHandler(this, GetChild <Spatial>(2));
     ability           = new PlayerAbility(this);
     inputs            = new PlayerInput(this);
     camRot            = new CameraRotHandler(this);
     fireFromLocations = GetChild(2).GetChild(0).GetChild <Spatial>(1);
     CallDeferred(nameof(DeferedSetup));
 }