public override void _Ready() { Fader.FaderReady faderActivate = null; faderActivate = () => { Fader.instance.StartFading(false, new Color(1, 1, 1)); Fader.faderReady -= faderActivate; }; Fader.faderReady += faderActivate; GD.Randomize(); }
public override void _Ready() { GD.Randomize(); if (instance == null) { instance = this; } _playerController = GetNode <PlayerController>(playerControllerNodePath); _playerShooting = GetNode <PlayerShooting>(playerShooterNodePath); _playerHealthSetter = GetNode <HealthSetter>(playerHealthSetterNodePath); _pauseResumeController = GetNode <PauseAndResume>(pauseResumeControllerNodePath); Fader.FaderReady faderActivate = null; faderActivate = () => { Fader.instance.StartFading(false, new Color(1, 1, 1)); Fader.faderReady -= faderActivate; }; Fader.faderReady += faderActivate; }