Exemple #1
0
    private void OnEnable()
    {
        analitic = (PlaytestAnalitic)target;

        analitic.nbDeath      = new int[analitic.nbLevelToTest];
        analitic.timeDuration = new float[analitic.nbLevelToTest];
        analitic.nbMoveCam    = new int[analitic.nbLevelToTest];

        //analitic.ShowData();
        analitic.data.text = "DATA";
    }
Exemple #2
0
    private void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
            DontDestroyOnLoad(gameObject);
        }
        else
        {
            Destroy(gameObject);
        }

        data.gameObject.SetActive(false);

        nbDeath      = new int[nbLevelToTest];
        timeDuration = new float[nbLevelToTest];
        nbMoveCam    = new int[nbLevelToTest];
    }