public void SwitchState(ControllerType ctrlType) { if (ctrlType == ControllerType.Install) { current = installCtrl; } else if (ctrlType == ControllerType.Match) { current = matchCtrl; } }
public PlaceCtrl() { highLight = new ShaderHighLight(); current = installCtrl = new WorldActionSystem.InstallState(/*this*/); matchCtrl = new WorldActionSystem.MatchState(this); }