コード例 #1
0
    protected virtual void Start()
    {
        AnalyticManager.OnLevelStart();

        if (GetLevelType() > 0)
        {
            levelData = LevelManager.Instance.GetLevelData(SceneManager.GetActiveScene().name);
        }
    }
コード例 #2
0
    void CollectData()
    {
        data.name  = _name;
        data.score = _score;

        string jsonData = JsonUtility.ToJson(data);

        StartCoroutine(AnalyticManager.PostMethod(jsonData));
    }
コード例 #3
0
        //
        // GET: /Admin/Analytic/

        public ActionResult Index()
        {
            Analytic anl = AnalyticManager.GetAnalytic();

            if (anl != null)
            {
                return(View(anl));
            }
            else
            {
                return(View());
            }
        }
コード例 #4
0
    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();
    }
コード例 #5
0
    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;
    }
コード例 #6
0
    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();
    }
コード例 #7
0
 public ActionResult Index(Analytic record)
 {
     ViewBag.Process = AnalyticManager.AddAnalytic(record.Code);
     return(View(record));
 }