Ejemplo n.º 1
0
        void Awake()
        {
            playerMetricsObject = new PlayerMetrics();
            rulesObject         = new DiagnosticRules();
            logObj = new Logger();

            //in order to print the data at the end the objects need to point to the same thing
            logObj.rulesObj = rulesObject;

            //playerMetricsObject.activityMetricsObject = taskObj;

            rulesObject.playerMetricsObject = playerMetricsObject;
            //playerMetricsObject.rulesObject = rulesObject;

            the_score = 0;
        }
        void Awake()
        {
            playerMetricsObject = new PlayerMetrics();
            rulesObject = new DiagnosticRules();
            logObj = new Logger();

            //in order to print the data at the end the objects need to point to the same thing
            logObj.rulesObj = rulesObject;

            //playerMetricsObject.activityMetricsObject = taskObj;

            rulesObject.playerMetricsObject = playerMetricsObject;
            //playerMetricsObject.rulesObject = rulesObject;

            the_score=0;
        }