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