public void Initialize(mg_bc_Truck _truck) { m_unCoinedScore = 0; CurrentScore = new mg_bc_UIValue <int>(); CurrentScore.SetValue(0); m_truck = _truck; }
public virtual void Awake() { CurrentDropAllowance = new mg_bc_UIValue <int>(); ParseXML(); m_restingLocation = base.gameObject.transform.localPosition; m_spawnLocation = base.transform.Find("mg_bc_object_spawn").localPosition; m_spawnLocation.x += m_restingLocation.x; m_spawnLocation.y += m_restingLocation.y; m_availableSpriteLayers = new Queue <int>(); for (int i = 21; i < 79; i++) { m_availableSpriteLayers.Enqueue(i); } IsSpawning = true; m_isFlyingPowerup = false; CanSpawnLives = true; CanSpawnShield = true; TruckNumber.SetValue(0); NextLevel(); }
public mg_bc_Penguin() { Lives = new mg_bc_UIValue <int>(); Lives.SetValue(3); }
public mg_bc_Truck() { TruckNumber = new mg_bc_UIValue <int>(); }