private bool preState, curState; // true : will 충분, false : will 부족 private void Start() { willBar = FindObjectOfType <WillBar>(); pointerMgr = FindObjectOfType <PointerMgr>(); toggle = GetComponent <Toggle>(); pieceIdx = GenericDataMgr.genericData_SO.GetPieceIdxByCode(code); cost = GenericDataMgr.genericData_SO.ChessPieces[pieceIdx].cost; costText.text = GenericDataMgr.genericData_SO.ChessPieces[pieceIdx].cost.ToString(); }
private bool curState = false; // true : will 충분, false : will 부족 private void Start() { pointerMgr = FindObjectOfType <PointerMgr>(); manaBar = FindObjectOfType <ManaBar>(); toggle = GetComponent <Toggle>(); if (code != "") { int idx = GenericDataMgr.genericData_SO.GetSkillIdxByCode(code); if (idx != -1) // 해당 코드를 가진 스킬이 있음 { Skill_Data = GenericDataMgr.genericData_SO.Skills[idx]; skill = Skill_Data.prefab; preview = Skill_Data.previewPrefab; background_selected.sprite = Skill_Data.thumbnail_noMana; background_unselected.sprite = Skill_Data.thumbnail_noMana; hasSkill = true; } } }
private void Awake() { // 16:9 길쭉한 해상도 if (Screen.width / Screen.height - 16f / 9f < Mathf.Epsilon) { Debug.Log("16:9 해상도"); Debug.Log(Screen.width + "" + Screen.height); Camera.main.transform.position = new Vector3(minXPos, 0f, -10f); maxXPos *= 1.4f; minXPos *= 1.4f; } // 18:9 길쭉한 해상도 else if (Screen.width / Screen.height - 18f / 9f < Mathf.Epsilon) { Debug.Log("18:9 해상도"); Debug.Log(Screen.width + "" + Screen.height); Camera.main.transform.position = new Vector3(minXPos, 0f, -10f); } mainCam = Camera.main; pointerMgr = FindObjectOfType <PointerMgr>(); }
private void OnEnable() { pointerMgr = FindObjectOfType <PointerMgr>(); pointerMgr.manaBar = this; }
private void Start() { pointerMgr = FindObjectOfType <PointerMgr>(); myAnim = GetComponent <Animator>(); }
private void Awake() { boundsMgr = GetComponent <BoundsMgr>(); udpMgr = GetComponent <UdpMgr>(); touchMouseMgr = GetComponent <TouchMouseMgr>(); assetMgr = GetComponent <AssetMgr>(); planeFinderMgr = GetComponent <PlaneFinderMgr>(); materialMgr = GetComponent <MaterialMgr>(); senderReceiverCamMgr = GetComponent <SenderReceiverCamMgr>(); highlightMgr = GetComponent <HighlightMgr>(); smoothMgr = GetComponent <SmoothMgr>(); pointerMgr = GetComponent <PointerMgr>(); avoidMgr = GetComponent <AvoidMgr>(); hitPlaceMgr = GetComponent <HitPlaceMgr>(); ticTacToeMgr = GetComponent <TicTacToeMgr>(); connectMgr = GetComponent <ConnectMgr>(); screwMgr = GetComponent <ScrewMgr>(); chessMgr = GetComponent <ChessMgr>(); pongMgr = GetComponent <PongMgr>(); progressMgr = GetComponent <ProgressMgr>(); autoMgr = GetComponent <AutoMgr>(); sculptMgr = GetComponent <SculptMgr>(); noiseMgr = GetComponent <NoiseMgr>(); modeMgr = GetComponent <ModeMgr>(); assetBundlesMgr = GetComponent <AssetBundlesMgr>(); shakeMgr = GetComponent <ShakeMgr>(); // goAssetsHolder = GameObject.Find("AssetsHolder"); goDownloadList = GameObject.Find("DownloadList"); goBundleDownloadList = GameObject.Find("BundleDownloadList"); goList = GameObject.Find("List"); goBundleList = GameObject.Find("BundleList"); textFps = GameObject.Find("TextFps").GetComponent <Text>(); imagePlane = GameObject.Find("ImagePlane").GetComponent <Image>(); textLog = GameObject.Find("TextLog").GetComponent <Text>(); goProgressIndicator = GameObject.Find("ProgressIndicator"); goProgressLists = new List <GameObject>(); LoadProgressLists(); goPointerOrig = GameObject.Find("PointerOrig"); goPointer = GameObject.Find("Pointer"); camMain = GameObject.Find("ARCamera").GetComponent <Camera>(); goGround = GameObject.Find("Ground"); goGroundBase = GameObject.Find("GroundBase"); goBoundingBox = GameObject.Find("BoundingBox"); goAdvances = new List <GameObject>(); goRetreats = new List <GameObject>(); goClouds = new List <GameObject>(); LoadAdvances(); LoadRetreats(); LoadClouds(); goAdvanceLights = new List <GameObject>(); goRetreatLights = new List <GameObject>(); goCloudLights = new List <GameObject>(); LoadAdvanceLights(); LoadRetreatLights(); LoadCloudLights(); buttonInfo = GameObject.Find("ButtonInfo").GetComponent <Button>(); buttonLog = GameObject.Find("ButtonLog").GetComponent <Button>(); buttonInfo.onClick.AddListener(ButtonInfoClicked); buttonLog.onClick.AddListener(ButtonLogClicked); imageInfo = GameObject.Find("ImageInfo").GetComponent <Image>(); textPlace = GameObject.Find("TextPlace").GetComponent <Text>(); goReceiverCamOrig = GameObject.Find("ReceiverCamOrig"); goReceiverCam = GameObject.Find("ReceiverCam"); goSenderCamOrig = GameObject.Find("SenderCamOrig"); goSenderCam = GameObject.Find("SenderCam"); goPlaneFinder = GameObject.Find("Plane Finder"); goProtractor = GameObject.Find("Protractor"); // textLogo = GameObject.Find("TextLogo").GetComponent <Text>(); udpMgr.port = 26000; role = RoleType.sender; textLogMax = 1500; Application.targetFrameRate = 60; f8 = "F6"; }