public void SetInputType(LocalInputType.InputType inputtype) { switch (inputtype) { case LocalInputType.InputType.NONE: inputController = null; break; case LocalInputType.InputType.HUMAN: inputController = new LocalInputHuman(); break; case LocalInputType.InputType.AI: inputController = new LocalInputAI(); break; case LocalInputType.InputType.SCRIPTED: inputController = new LocalInputScripted(); break; } if (inputController != null) { inputController.SetOwner(this); } subAllInputTypeChanged.NotifyObs(this, inputtype); }
public LocalInput(LocalInputType type) { this.type = type; }
public LocalInput(LocalInputType type) { this.type = type; }