void Start() { unitManager = GameObject.FindGameObjectWithTag("PlayerUnitManager").GetComponent<UnitManager>(); attackMoveIndicator = GameObject.FindGameObjectWithTag("PlayerUnitManager").GetComponent<AttackMoveIndicatorScript>(); mainCamera = GameObject.FindGameObjectWithTag("MainCamera"); pauseMenu = mainCamera.GetComponent<PauseMenuGUI>(); }
void Start() { unitManager = GameObject.FindGameObjectWithTag("PlayerUnitManager").GetComponent <UnitManager>(); attackMoveIndicator = GameObject.FindGameObjectWithTag("PlayerUnitManager").GetComponent <AttackMoveIndicatorScript>(); mainCamera = GameObject.FindGameObjectWithTag("MainCamera"); pauseMenu = mainCamera.GetComponent <PauseMenuGUI>(); }
void Start() { unitManager = GameObject.FindGameObjectWithTag("PlayerUnitManager").GetComponent <UnitManager>(); attackMoveIndicator = GameObject.FindGameObjectWithTag("PlayerUnitManager").GetComponent <AttackMoveIndicatorScript>(); selectionBox = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <CreateSelectionBox>(); }
void Start() { unitManager = GameObject.FindGameObjectWithTag("PlayerUnitManager").GetComponent<UnitManager>(); attackMoveIndicator = GameObject.FindGameObjectWithTag("PlayerUnitManager").GetComponent<AttackMoveIndicatorScript>(); selectionBox = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<CreateSelectionBox>(); }