Example #1
0
    public void StartSimulation()
    {
        Running = true;

        if (Mode == AtmosMode.Threaded)
        {
            AtmosThread.SetSpeed((int)Speed);
            AtmosThread.Start();
        }
    }
    public void StartSimulation()
    {
        if (!CustomNetworkManager.Instance._isServer)
        {
            return;
        }

        Running = true;

        if (Mode == AtmosMode.Threaded)
        {
            AtmosThread.SetSpeed((int)Speed);
            AtmosThread.Start();
        }
    }
 public static void SetInternalSpeed()
 {
     AtmosThread.SetSpeed((int)Instance.Speed);
 }
    private void OnValidate()
    {
        AtmosThread.SetSpeed(Speed);

        // TODO set number of threads
    }