void HideLastJob(int nLastJob) { WCREATER_CONTROL_ENUM eLastDescValue = (WCREATER_CONTROL_ENUM)((int)WCREATER_CONTROL_ENUM.WHCH_DESC_NODE_1 + nLastJob); GameObject xLastDescNode = (GameObject)mhtWindow[eLastDescValue]; if (xLastDescNode) { xLastDescNode.SetActive(false); } }
void SelectJob() { GameObject xCameraTarn = (GameObject)mhtWindow[WCREATER_CONTROL_ENUM.WHCH_CAMERANODE]; WCREATER_CONTROL_ENUM eCurrHeroNodeValue = (WCREATER_CONTROL_ENUM)((int)WCREATER_CONTROL_ENUM.WHCH_TARGETNODE_1 + nCurrJob); WCREATER_CONTROL_ENUM eCurrDescValue = (WCREATER_CONTROL_ENUM)((int)WCREATER_CONTROL_ENUM.WHCH_DESC_NODE_1 + nCurrJob); GameObject xCurrJobCamNode = (GameObject)mhtWindow[eCurrHeroNodeValue]; if (xCurrJobCamNode) { } GameObject xCurrDescNode = (GameObject)mhtWindow[eCurrDescValue]; if (xCurrDescNode && xCameraTarn) { xCurrDescNode.SetActive(true); xCameraTarn.transform.position = xCurrJobCamNode.transform.position; } }
void Update() { WCREATER_CONTROL_ENUM eCurrHeroNodeValue = (WCREATER_CONTROL_ENUM)((int)WCREATER_CONTROL_ENUM.WHCH_HERO_NODE_1 + nCurrJob); GameObject xCurrHeroNode = (GameObject)mhtWindow[eCurrHeroNodeValue]; }