示例#1
0
 void Awake()
 {
     gameManager  = GameObject.FindGameObjectWithTag("GameManager");
     gameInfo     = gameManager.GetComponent <GameInfo>();
     uiManager    = gameManager.GetComponent <UIManager>();
     actionScript = GetComponent <HeroActionScript>();
     myInfo       = GetComponent <CharacterInfo>();
     characters   = gameInfo.characters;
 }
示例#2
0
 void Awake()
 {
     gameManager = GameObject.FindGameObjectWithTag("GameManager");
     gameInfo = gameManager.GetComponent<GameInfo>();
     uiManager = gameManager.GetComponent<UIManager>();
     actionScript = GetComponent<HeroActionScript>();
     myInfo = GetComponent<CharacterInfo>();
     characters = gameInfo.characters;
 }