예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Request"/> class.
 /// </summary>
 public Request()
 {
     TransactionData = new TransactionData();
     Enduser         = new EndUser();
     SalesData       = new SalesData();
     StatsData       = new StatsDetails();
 }
예제 #2
0
파일: Stats.cs 프로젝트: zcvdf/culling
    public static void NextDetailsLevel()
    {
        var detail = (int)Details + 1;

        if (detail > 2)
        {
            detail = 0;
        }

        Details = (StatsDetails)detail;
    }
예제 #3
0
 private void Awake()
 {
     if (rf == null)
     {
         rf = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
     healthBar                = GameObject.Find("HealthBar").GetComponent <Bar>();
     staminaBar               = GameObject.Find("StaminaBar").GetComponent <Bar>();
     playerEquipment          = FindObjectOfType <PlayerEquipment>();
     playerMovement           = FindObjectOfType <PlayerMovement>();
     statsDetails             = FindObjectOfType <StatsDetails>();
     mainInventory            = FindObjectOfType <MainInventory>();
     weaponSlot               = FindObjectOfType <WeaponSlot>();
     enemyManager             = FindObjectOfType <EnemyManager>();
     inventoryScreenCharacter = FindObjectOfType <InventoryScreenCharacter>();
     mainInventory.gameObject.SetActive(false);
     mainCamera = Camera.main;
 }