Example #1
0
 void Start()
 {
     round_level    = GameObject.Find("spawner");
     round_accessor = round_level.GetComponent <LevelControl> ();
     store_accessor = GameObject.Find("Store");
     storecontrol   = store_accessor.GetComponent <StoreControl> ();
 }
Example #2
0
        private void RefreshState()
        {
            if (!_isListening)
            {
                return;
            }

            InitState();

            var purchased = StoreControl.IsPurchased(_receiver.ListeningId);

            switch (_itemState)
            {
            case StoreItemState.Authorized:
                if (!purchased)
                {
                    UpdateState(StoreItemState.Revoked);
                }
                break;

            default:
                if (purchased)
                {
                    UpdateState(StoreItemState.Authorized);
                }
                break;
            }
        }
        private void BtnMagazine_Click(object sender, EventArgs e)
        {
            tblDashboard.Controls.Remove(tblDashboard.Controls[2]);
            StoreControl storeControl = new StoreControl(employee, DBMigrator);

            storeControl.Dock = DockStyle.Fill;
            tblDashboard.Controls.Add(storeControl);
        }
Example #4
0
 // Use this for initialization
 void Start()
 {
     wave                 = 0;
     maxEnemies           = 1;
     roundIsOver          = true;
     startTimer           = 2;
     current_enemy_amount = 0;
     Tutorial             = 1;
     lives                = 20;
     store_accessor       = GameObject.Find("Store");
     storecontrol         = store_accessor.GetComponent <StoreControl> ();
     SpawnRate            = 1F;
     currentEnemies       = 1;
 }
Example #5
0
 // Use this for initialization
 void Start()
 {
     thisEnemy      = this.gameObject;
     Speedgetter    = thisEnemy.GetComponent <Dino_walk> ();
     store_accessor = GameObject.Find("Store");
     storecontrol   = store_accessor.GetComponent <StoreControl> ();
     if (this.gameObject.name == "Sanic_Raptor(Clone)")
     {
         hlth = 2f;
     }
     else if (this.gameObject.name == "Dino_enemy(Clone)")
     {
         hlth = 1f;
     }
     else
     {
         hlth = 6f;
     }
 }
Example #6
0
 // Use this for initialization
 void Start()
 {
     Store_sniper = GameObject.Find("Store");
     Store_bool   = Store_sniper.GetComponent <StoreControl> ();
 }
Example #7
0
 protected override void OnClick()
 {
     base.OnClick();
     storeClickSingal.Dispatch("restore");
     StoreControl.RequestRestore();
 }