XP done
This commit is contained in:
@@ -61,6 +61,7 @@ public class Building : MonoBehaviour
|
||||
Mathf.Clamp(curLevel++,0, buildingData.levels.Count-1);
|
||||
|
||||
DBmanager.UpgradeBuilding(buildingData.buildingName, curLevel);
|
||||
DBmanager.SetXp(DBmanager.Xp + buildingData.levels[curLevel].xpGain);
|
||||
}
|
||||
//
|
||||
// public List<Collider> buildingsInsideMe = new List<Collider>();
|
||||
@@ -104,10 +105,10 @@ public class BuildingState{
|
||||
public Vector3 position;
|
||||
public DateTime lastCollectedTimestamp;
|
||||
|
||||
public BuildingState(string m_id, int m_level, Vector3 m_position){
|
||||
public BuildingState(string m_id, int m_level, Vector3 m_position, DateTime _lastCollectedTimestamp){
|
||||
id = m_id;
|
||||
level = m_level;
|
||||
position = m_position;
|
||||
lastCollectedTimestamp = DBmanager.GetNetworkTime();
|
||||
lastCollectedTimestamp= _lastCollectedTimestamp;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user