protected virtual void Start() { AnalyticManager.OnLevelStart(); if (GetLevelType() > 0) { levelData = LevelManager.Instance.GetLevelData(SceneManager.GetActiveScene().name); } }
void CollectData() { data.name = _name; data.score = _score; string jsonData = JsonUtility.ToJson(data); StartCoroutine(AnalyticManager.PostMethod(jsonData)); }
// // GET: /Admin/Analytic/ public ActionResult Index() { Analytic anl = AnalyticManager.GetAnalytic(); if (anl != null) { return(View(anl)); } else { return(View()); } }
public virtual void GameOver() { active = false; gameOver = true; Camera.main.GetComponent <ProCamera2D>().enabled = false; OnLevelEnd(); //Camera.main.GetComponent<ProCamera2DZoomToFitTargets>().MaxZoomInAmount = 3; //Camera.main.GetComponent<ProCamera2DZoomToFitTargets>().DisableWhenOneTarget = false; GUIManager.Instance.GameOver(); AnalyticManager.OnGameOver(); }
void Start() { eventSystem = EventSystem.current; startButton.GetComponent <Button>().onClick.AddListener(() => { StartButton(); }); //muteButton = transform.Find("MuteMusic").gameObject; //muteButton.GetComponent<Button>().onClick.AddListener(() => { MuteMusic(); }); //muteText = muteButton.transform.Find("Text").GetComponent<Text>(); AnalyticManager.OnStart(); PlayerManager.coopActive = false; PlayerManager.titleInput = true; Cursor.visible = true; }
public virtual void LevelComplete() { active = false; gameOver = false; //Disable Music Bars //MusicBars[] musicBars = (MusicBars[])GameObject.FindObjectsOfType(typeof(MusicBars)); levelData.completed = true; LevelManager.Instance.Save(); Camera.main.GetComponent <ProCamera2D>().enabled = false; OnLevelEnd(); GUIManager.Instance.WinScreen(); AnalyticManager.OnLevelComplete(); }
public ActionResult Index(Analytic record) { ViewBag.Process = AnalyticManager.AddAnalytic(record.Code); return(View(record)); }