public void Analyse(Codex codex) { if (curSample != null) { //temp TempTasksManager.instance.UpdateCurrentTask(1); particles.Play(); codex.AddSample(curSample); } /* * if (!state) * { * if (curSample != null) * { * AnalyserOn(); * } * } * else * { * AnalyserOff(); * } */ }