protected override void OnInit(GDGameScreen screen) { _screen = screen; _cannon1 = screen.GetEntities <Cannon>().Single(c => c.BlueprintCannonID == 11); _cannon2 = screen.GetEntities <Cannon>().Single(c => c.BlueprintCannonID == 12); _cannon3 = screen.GetEntities <Cannon>().Single(c => c.BlueprintCannonID == 30); _cannon4 = screen.GetEntities <Cannon>().Single(c => c.BlueprintCannonID == 22); _cannon5 = screen.GetEntities <Cannon>().Single(c => c.BlueprintCannonID == 21); _controller5 = new TutorialController(_screen, _cannon5); _cannon5.ForceSetController(_controller5); _fracPlayer = _cannon1.Fraction; _fracNeutral = _cannon3.Fraction; _fracComputer = _cannon5.Fraction; _hud = (GDGameHUD)_screen.HUD; _screen.GameSpeedMode = GameSpeedModes.SLOW; #if DEBUG _screen.DebugDisp.AddLine(() => $"Tutorial_State = ({(int)_state}) {_state}"); #endif }
private void Transition_5_AttackEnemy() { _state = TutorialState.AttackEnemy; _controller4 = new TutorialController(_screen, _cannon4); _cannon4.ForceSetController(_controller4); _cannon4.RotateTo(_cannon3); _controller4.RechargeBarrel = true; _cannon1.RotateTo(_cannon2); _cannon2.RotateTo(_cannon3); SetInfoBox(L10N.T(L10NImpl.STR_TUT_INFO5)); AddTouchAnimation(_cannon3, _cannon4); }