Ejemplo n.º 1
0
    const int groundPlaneLayerMask = 1 << 9; // layer # 9 needs to be bit shifted from some reason

    #endregion VARIABLES

    #region MONOBEHAVIOUR

    private void Start()
    {
        buildMenuInstance = BuildingMenuManager.GetInstance();
        buildMenuInstance.OnBuildingSelectedToPlace += StartPlaceBuilding;
    }
Ejemplo n.º 2
0
 /// <summary>
 /// Triggers the action in BuildingMenuManager that starts building placement
 /// </summary>
 public void SendBuildingPlaceEvent(GameObject buildingPrefab)
 {
     BuildingMenuManager.GetInstance().InvokeOnBuildingSelectedToPlace(buildingPrefab);
 }