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"; }
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]; }