public void OnBtnUnit(DBTypes.Unit myUnit)
 {
     Messenger <DBTypes.Unit> .Broadcast(GameEvents.CityGUIGameEvent.ON_BUTTON_UNIT, myUnit);
 }
    public static UnitCreateOnBuildPanel InstantiateUnitBtn(GameObject gObj, UnitInSquadController unitPrefab, City city, DBTypes.Unit unit)
    {
        UnitCreateOnBuildPanel result = gObj.AddComponent <UnitCreateOnBuildPanel>();

        result.UPrefab    = unitPrefab;
        result.UCity      = city;
        result.UnitParams = unit;

        return(result);
    }