Example #1
0
    public override void Save()
    {
        base.Save();

        locaStorage.HealthAndDeath.Health = currentHealth;
        SaveLoadComponentAndLocalStorage.Set(this, "healthAndDeath", locaStorage);
    }
Example #2
0
 public override void Save()
 {
     foreach (GameObject rotatableGmObj in listRotatableGmObj)
     {
         SaveLoadComponentAndLocalStorage.Set(this, rotatableGmObj + "normal", new LocalStorage(rotatableGmObj.transform.forward));
     }
 }
Example #3
0
 public override void Save()
 {
     try
     {
         SaveLoadComponentAndLocalStorage.Set(this, transform.root + "normal", new LocalStorage(transform.forward));
     }
     catch { }
 }
Example #4
0
 public override void Save()
 {
     try
     {
         SaveLoadComponentAndLocalStorage.Set(this, "position", new LocalStorage(transform.position));
         SaveLoadComponentAndLocalStorage.Set(this, "normal", new LocalStorage(transform.forward));
     }
     catch { }
 }
Example #5
0
    public override void Save()
    {
        SaveLoadComponentAndLocalStorage.Set(this, rotatable + "normal", new LocalStorage(rotatable.transform.eulerAngles));

        foreach (GameObject active in noActiveObjects)
        {
            SaveLoadComponentAndLocalStorage.Set(this, active + "active", new LocalStorage(active.activeInHierarchy));
        }
        foreach (GameObject active in activeObjects)
        {
            SaveLoadComponentAndLocalStorage.Set(this, active + "active", new LocalStorage(active.activeInHierarchy));
        }
    }
Example #6
0
    public void DeathRoot()
    {
        death = true;
        locaStorage.HealthAndDeath.Death = death;

        SaveLoadComponentAndLocalStorage.Set(this, "healthAndDeath", locaStorage);
        //SaveLoadComponentAndLocalStorage.Remove(this);

        GameObject destroy;

        if (destroyRoot)
        {
            destroy = transform.root.gameObject;
        }
        else
        {
            destroy = gameObject;
        }

        Destroy(destroy);
    }
Example #7
0
 public override void Save()
 {
     locaStorage.HealthAndDeath.Death = death;
     SaveLoadComponentAndLocalStorage.Set(this, "healthAndDeath", locaStorage);
 }