Analytics.GameMetricLogger.Initialization C# (CSharp) Method

Initialization() private method

private Initialization ( ) : void
return void
        private void Initialization()
        {
            //Integers
            this.levelDifficulty = -1;
            this.numberOfAttacks = 0;
            this.numberOfDeaths = 0;
            this.numberOfKills = 0;
            this.numberOfMerges = 0;
            this.numberOfSplits = 0;

            //Floats
            this.totalGameTimeSinceEpoch = 0f;
            this.totalGameTime = 0f;
            this.totalBattleEngagementTime = 0f;
            this.totalAttackTime = 0f;

            //Strings
            this.playerName = "Player";
            this.difficultyEquations = "N/A (Not used.)";

            //Flags and class members
            this.outputField = this.GetComponentInChildren<InputField>();
            this.outputField.readOnly = true;
            this.outputField.lineType = InputField.LineType.MultiLineNewline;
            this.outputField.characterLimit = 0;
            this.stringBuilder = new StringBuilder();
            this.gameMetricsLogGroup = this.GetComponent<CanvasGroup>();
            this.gameMetricLoggerStart = false;
            this.gameStartFlag = false;
            this.isInputEnabled = false;
            this.metricsReportText = "";

            //Check if name and difficulty is valid
            GameObject obj = GameObject.FindGameObjectWithTag("Name");
            if (obj != null) {
                InputField field = obj.GetComponent<InputField>();
                this.playerName = field.text;
            }
            obj = GameObject.FindGameObjectWithTag("Difficulty");
            if (obj != null) {
                Dropdown down = obj.GetComponent<Dropdown>();
                this.levelDifficulty = down.value;
                this.difficultyEquations = down.options[down.value].text;
            }

            //Canvas Group
            DisableCanvasGroup();
        }