void Start() { InputProcessor input = Environment == Environment.PC ? (InputProcessor) new PCInputProcessor(Config, PCInputBinding, this) : new CaveInputProcessor(Config, CaveInputBinding, this); binding = Environment == Environment.PC ? (InputBinding)PCInputBinding : CaveInputBinding; // TODO: let user choose the main flystick CaveInputBinding.SetPrimaryFlystick(0); binding.Init(); }
void Start() { if (Environment == Environment.Cave) { Flysticks[0].GetComponent <LineRenderer>().enabled = ShowFlystickRays; } if (!NetworkController.IsServer()) { return; } InputProcessor input = GetEnvDependent((InputProcessor) new PCInputProcessor(PCConfig, PCInputBinding, this), new CaveInputProcessor(CaveConfig, CaveInputBinding, this)); binding = GetEnvDependent((InputBinding)PCInputBinding, CaveInputBinding); CaveInputBinding.SetPrimaryFlystick(0); binding.Init(); SetBlockInput(true, InputBlockType.INFO_SPACE); }