示例#1
0
 void Awake()
 {
     text           = GetComponent <UnityEngine.UI.Text>();
     missionManager = FindObjectOfType <DrForgetful.MissionManager>();
     missionManager.scoreListener = this;
 }
示例#2
0
 void Start()
 {
     missionManager = FindObjectOfType <MissionManager>();
     uiText         = GetComponent <Text>();
 }