public int fov; // Clamp 40 ~ 70 (default: 60) /// <summary> /// default setting /// </summary> public SettingInfo() { playmode = Playmode.oneHandMode; camFixmode = CamFixmode.playerCenterFix; sound = 0f; fov = 50; }
public void BuildTurret() { //playmode = Playmode.Turret; playmode = Playmode.Build; buildchoice = BuildChoice.Turret; Debug.Log("turret-ing now"); }
public void BuildWall() { //playmode = Playmode.Wall; playmode = Playmode.Build; buildchoice = BuildChoice.Wall; Debug.Log("wall-ing now"); }
protected void StopPlaymode() { if (playmode != Playmode.IsPlaying) { return; } playmode = Playmode.WantsToStopPlaying; EditorApplication.isPlaying = false; }
protected void StartPlaymode() { if (playmode != Playmode.IsStopped) { return; } playmode = Playmode.WantsToStartPlaying; EditorApplication.isPlaying = true; }
public void ModeCheck() { if (playerList.Count > 1) { mode = Playmode.multiplayer; } else { mode = Playmode.singleplayer; } }
protected void Update() { bool isPlaying = EditorApplication.isPlaying; if (isPlaying && !wasPlaying) { OnPlaymodeStarted(playmode != Playmode.WantsToStartPlaying); playmode = Playmode.IsPlaying; } if (!isPlaying && wasPlaying) { OnPlaymodeEnded(playmode != Playmode.WantsToStopPlaying); playmode = Playmode.IsStopped; } wasPlaying = isPlaying; }
public void GetSettingInfo(out Playmode mode) => mode = settingInfo.GetPlaymode();
public void SetSettingInfo(Playmode mode) => settingInfo.SetPlaymode(mode);
public void SetPlaymode(Playmode mode) { playmode = mode; }
void Start() { playmode = Playmode.Shoot; panelColor = bulletPanel.color; }
public void ShootMode() { playmode = Playmode.Shoot; Debug.Log("shooting now"); }