Exemple #1
0
    public override void OnStateEnter()
    {
        mull.treeDistance = 600f;


        ZoomHelper.setUIVisibility(cameraControlButtons.GetComponent <CanvasGroup>(), false);
        ZoomHelper.setMarkerVisibility(false);
    }
    /*Handles fetching the settlement data from the web. Then attempts to place every settlement.
     * Returns true if it works*/

    /* given an array of settlement data, places prefab settlements for each piece of data
     */
    void placeSettlements(SettlementData[] settlementData)
    {
        this.settlementData = settlementData;
        for (int i = 0; i < settlementData.Length; i++)
        {
            placeSettlement(settlementData[i]);
        }
        ZoomHelper.setMarkerVisibility(false);
    }
Exemple #3
0
 public override void OnStateExit()
 {
     ZoomHelper.setMarkerVisibility(true);
 }