public void Initializable(IPlayerBallDef playerBallDef) { var modeSpeed = playerBallDef.CheckNull().MoveSpeed; ForwardVelocity = new Vector3(-modeSpeed, 0, 0); RightVelocity = new Vector3(0, 0, modeSpeed); }
private void Construct(IGameStatusObserver gameStatusObserver, IPlayerBallDef playerBallDef) { GameStatusObserver = gameStatusObserver.CheckNull(); PlayerBallDef = playerBallDef.CheckNull(); }
public GameConfigurator(IGameDef gameDef, IPlayerBallDef playerBallDef) { GameDef = gameDef.CheckNull(); PlayerBallDef = playerBallDef.CheckNull(); }
public void GameInitialize(IGameConfigurator configurator) { _gameDef = configurator.GameDef; PlayerBallDef = configurator.PlayerBallDef; }