Exemple #1
0
    public void Save()
    {
        List <Vector3> allPoints = this.m_DestroyedObjects.GetAllPoints();

        SaveGame.SaveVal("SOMDestroyedCount", allPoints.Count);
        for (int i = 0; i < allPoints.Count; i++)
        {
            SaveGame.SaveVal("SOMPos" + i, allPoints[i]);
        }
        ObjectWithTrunk.OnSave();
    }
Exemple #2
0
    public void Save()
    {
        List <Vector3> pointsInRadius = this.m_DestroyedObjects.GetPointsInRadius(Vector3.zero, float.MaxValue, false);

        SaveGame.SaveVal("SOMDestroyedCount", pointsInRadius.Count);
        for (int i = 0; i < pointsInRadius.Count; i++)
        {
            SaveGame.SaveVal("SOMPos" + i, pointsInRadius[i]);
        }
        ObjectWithTrunk.OnSave();
    }