本文整理汇总了C#中DataContainer.Addvalue方法的典型用法代码示例。如果您正苦于以下问题:C# DataContainer.Addvalue方法的具体用法?C# DataContainer.Addvalue怎么用?C# DataContainer.Addvalue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataContainer
的用法示例。
在下文中一共展示了DataContainer.Addvalue方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LaunchGame
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");
}
示例2: CollectData
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);
}
示例3: CollectData
public override void CollectData(DataContainer container)
{
container.RegisterLocation(transform);
container.m_spawnable = m_entity.alive;
container.Addvalue("ent", m_entity);
}
示例4: CollectData
public override void CollectData(DataContainer container)
{
container.Addvalue("interact", CanInteract);
container.Addvalue("active", m_object.activeInHierarchy);
}
示例5: CollectData
public override void CollectData(DataContainer container)
{
container.Addvalue("amount", amount);
container.m_spawnable = amount > 0;
}
示例6: CollectData
public override void CollectData(DataContainer container)
{
container.m_spawnable = true;
container.Addvalue("waiting", waiting);
}