base game UI integrated
This commit is contained in:
@@ -36,8 +36,11 @@ public class Building : MonoBehaviour
|
||||
void ToggleOutlines(bool value){
|
||||
bool isMoving = Selector.movingBuilding==this;
|
||||
foreach(Outline outline in outlines){
|
||||
outline.enabled = value;
|
||||
outline.OutlineColor = (isMoving) ? Color.green : Color.yellow;
|
||||
// outline.enabled = value;
|
||||
outline.enabled=true;
|
||||
outline.OutlineColor = value ? Color.yellow : new Color(0.68f,0.68f,0.68f);
|
||||
outline.OutlineWidth = 5;
|
||||
// outline.OutlineColor = (isMoving) ? Color.green : Color.yellow;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ public class BuildingManager : MonoBehaviour
|
||||
break;
|
||||
}
|
||||
}
|
||||
building.gameObject.SetActive(buildingExists);
|
||||
// building.gameObject.SetActive(buildingExists);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -170,6 +170,11 @@ public class DBmanager : MonoBehaviour
|
||||
OnStateChanged.Invoke();
|
||||
}
|
||||
|
||||
public static int XpForNextLevel(){
|
||||
int nextLevel = Mathf.CeilToInt(level);
|
||||
return (nextLevel*nextLevel) * 100;
|
||||
}
|
||||
|
||||
public async static Task SetCoins(int newValue, bool justOffline = false)
|
||||
{
|
||||
WWWForm form = new WWWForm();
|
||||
|
||||
@@ -16,6 +16,7 @@ public class GameManager : MonoBehaviour
|
||||
public TMP_Text oxygenTxt;
|
||||
public TMP_Text levelTxt;
|
||||
public Slider levelSlider;
|
||||
public TMP_Text levelProgressTxt;
|
||||
|
||||
public GameObject loadingScreen;
|
||||
void Start()
|
||||
@@ -53,7 +54,10 @@ public class GameManager : MonoBehaviour
|
||||
levelTxt.text = Mathf.CeilToInt(DBmanager.Level).ToString();
|
||||
|
||||
float levelExcess = DBmanager.Level - Mathf.FloorToInt(DBmanager.Level);
|
||||
Debug.Log("Level : " + DBmanager.Level);
|
||||
levelSlider.value = Mathf.Clamp(levelExcess, 0.1f,1);
|
||||
// levelSlider.value = Mathf.Clamp(DBmanager.Xp /, 0.1f,1);
|
||||
levelProgressTxt.text = $"{DBmanager.Xp}/{DBmanager.XpForNextLevel()}";
|
||||
}
|
||||
|
||||
public async void LoadMinigame(){
|
||||
|
||||
@@ -14,20 +14,20 @@ LightingSettings:
|
||||
m_RealtimeEnvironmentLighting: 1
|
||||
m_BounceScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_IndirectOutputScale: 3.7
|
||||
m_UsingShadowmask: 1
|
||||
m_BakeBackend: 1
|
||||
m_LightmapMaxSize: 64
|
||||
m_BakeResolution: 8
|
||||
m_Padding: 2
|
||||
m_TextureCompression: 0
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_AO: 1
|
||||
m_AOMaxDistance: 2
|
||||
m_CompAOExponent: 1.5
|
||||
m_CompAOExponentDirect: 1
|
||||
m_ExtractAO: 0
|
||||
m_MixedBakeMode: 2
|
||||
m_LightmapsBakeMode: 0
|
||||
m_LightmapsBakeMode: 1
|
||||
m_FilterMode: 1
|
||||
m_LightmapParameters: {fileID: 15201, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ExportTrainingData: 0
|
||||
|
||||
Reference in New Issue
Block a user