public override void CollectData(DataContainer container)
        {
            container.m_spawnable = true;

            container.Addvalue("marine", marinesType);
            container.Addvalue("ent", m_entity);

            container.Addvalue("stockAmmo0", playerAmmo.ammoCarriedType0);
            container.Addvalue("stockAmmo1", playerAmmo.ammoCarriedType1);

            if (marinesType == MarinesType.MajCarter)
            {
                container.Addvalue("ammo0", weapCCarter.doubleGuns.magazine);
                container.Addvalue("ammo1", weapCCarter.flamethrower.magazine);
                container.Addvalue("weapIndex", weapCCarter.IndexActiveWeapon);
            }
            else
            {
                container.Addvalue("ammo0", weapCHartman.assaultRifle.magazineBullet);
                container.Addvalue("ammo1", weapCHartman.assaultRifle.magazineGrenade);
            }


            SaveSystem.GetActiveSceneData().StageData.OverridePlayerLocation(transform.position, transform.rotation);
        }
 public void LaunchGame()
 {
     SaveSystem.Registery.m_snapshot.m_partyName = charName.text;
     DataContainer playerContainer = new DataContainer("player");
     playerContainer.Addvalue("marine", selectedMarine);
     //...
     SaveSystem.RegisterPlayer(playerContainer);
     SaveSystem.LoadScene("scn_IntroScreen");
 }
    public void LaunchGame()
    {
        SaveSystem.Registery.m_snapshot.m_partyName = charName.text;
        DataContainer playerContainer = new DataContainer("player");

        playerContainer.Addvalue("marine", selectedMarine);
        //...
        SaveSystem.RegisterPlayer(playerContainer);
        SaveSystem.LoadScene("SampleLab");
    }
        public override void CollectData(DataContainer container)
        {

            container.m_spawnable = true;

            container.Addvalue("marine", marinesType);
            container.Addvalue("ent", m_entity);

            container.Addvalue("stockAmmo0", playerAmmo.ammoCarriedType0);
            container.Addvalue("stockAmmo1", playerAmmo.ammoCarriedType1);

            if (marinesType == MarinesType.MajCarter)
            {
                container.Addvalue("ammo0", weapCCarter.doubleGuns.magazine);
                container.Addvalue("ammo1", weapCCarter.flamethrower.magazine);
                container.Addvalue("weapIndex", weapCCarter.IndexActiveWeapon);
            }
            else
            {
                container.Addvalue("ammo0", weapCHartman.assaultRifle.magazineBullet);
                container.Addvalue("ammo1", weapCHartman.assaultRifle.magazineGrenade);
            }


            SaveSystem.GetActiveSceneData().StageData.OverridePlayerLocation(transform.position, transform.rotation);
        }
 public override void CollectData(DataContainer container)
 {
     container.Addvalue("interact", CanInteract);
     container.Addvalue("active", m_object.activeInHierarchy);
 }
Exemple #6
0
 public override void CollectData(DataContainer container)
 {
     container.m_spawnable = true;
     container.Addvalue("waiting", waiting);
 }
Exemple #7
0
 public override void CollectData(DataContainer container)
 {
     container.RegisterLocation(transform);
     container.m_spawnable = m_entity.alive;
     container.Addvalue("ent", m_entity);
 }
 public override void CollectData(DataContainer container)
 {
     container.Addvalue("interact", CanInteract);
     container.Addvalue("active", m_object.activeInHierarchy);
 }
Exemple #9
0
 public override void CollectData(DataContainer container)
 {
     container.RegisterLocation(transform);
     container.m_spawnable = m_entity.alive;
     container.Addvalue("ent", m_entity);
 }
Exemple #10
0
 public override void CollectData(DataContainer container)
 {
     container.Addvalue("amount", amount);
     container.m_spawnable = amount > 0;
 }
Exemple #11
0
 public override void CollectData(DataContainer container)
 {
     container.Addvalue("amount", amount);
     container.m_spawnable = amount > 0;
 }
 public override void CollectData(DataContainer container)
 {
     container.m_spawnable = true;
     container.Addvalue("waiting", waiting);
 }