private void Awake() { //sr = GameObject.Find("buildingList").GetComponent<ScrollRect>(); UIMgr = GameObject.Find("UIMgr").GetComponent <BuildingCraftingUI>(); mousePoint = GameObject.Find("BuildingMgr").GetComponent <MousePoint>(); plane = GameObject.Find("buildingInfoView"); }
private void Awake() { isBase = false; camGO = GameObject.Find("CamObj").GetComponent <CameraCtrl>(); playerData = GameObject.Find("PlayerMgr").GetComponent <PlayerData>(); CraftingUI = GameObject.Find("UIMgr").GetComponent <BuildingCraftingUI>(); isBuildingTileMgr = GameObject.Find("isBuildingTileMgr"); isBuildingTile = new List <GameObject>(); buildingSound = this.gameObject.AddComponent <AudioSource>(); buildingSound.clip = buildingSoundClip; buildingSound.volume = 0.6f; }