Пример #1
0
    private void OnTriggerEnter(Collider col)
    {
        switch (col.gameObject.tag)
        {
        case "Enemy":
            col.gameObject.GetComponent <Enemy>().Die();
            break;

        case "Gate":

            CloseGate gateLink = col.gameObject.GetComponent <CloseGate>();
            gateLink.fRemainingTime = gateLink.fMaxTime + fExtendedGateTime;                        //++ Player Powerup Bonus
            gateLink.UpdateMesh();
            break;

        case "PowerUP":
            PowerUp01 PowerUpLink = col.gameObject.GetComponent <PowerUp01>();
            PowerUpLink.Power(this.gameObject);
            break;

        case "Target":
            fTimer += Time.deltaTime;
            if (fTimer >= 1)
            {
                fTimer = 0;
                HealChilli(col.gameObject);
            }
            break;
        }
    }
        // GET: Command
        public ActionResult Index()
        {
            //Remote remote = new Remote();

            Window w1 = new Window();
            Window w2 = new Window();
            Window w3 = new Window();


            OpenWindow ow = new OpenWindow(w1);



            Remote.InsertOnCommand(ow);

            Remote.InsertOffCommand(CloseGate.Instance());

            Remote.InsertOffCommand(CloseGate.Instance());

            Remote.PressButtonOn(0);

            return(View());
        }