示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     displayManager = GameObject.FindGameObjectWithTag("DisplayManager").GetComponent <PickUpItemDisplayManager>();
     StartCoroutine("DestroyMessage");
 }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     lootManager    = GameObject.FindGameObjectWithTag("LootManager").GetComponent <LootManager>();
     displayManager = GameObject.FindGameObjectWithTag("DisplayManager").GetComponent <PickUpItemDisplayManager>();
     player         = GameObject.FindGameObjectWithTag("Player");
 }