Ejemplo n.º 1
0
 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");
 }
Ejemplo n.º 2
0
    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;
    }