Ejemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        timer    += Time.deltaTime;
        disrupted = powerCell.GetDisrupted();
        if (!disrupted)
        {
            CheckInput();
        }

        if (activeSide > 3)
        {
            activeSide = 0;
        }
        if (activeSide < 0)
        {
            activeSide = 3;
        }

        if (thisSide == activeSide)
        {
            isRightSide = true;
        }
        else
        {
            isRightSide = false;
        }
    }
Ejemplo n.º 2
0
//Checks for PowerCell disrupted state. If not disrupted, checks for player inputs.
    void Update()
    {
        disrupted = powerCell.GetDisrupted();
        if (!disrupted)
        {
            CheckInput();
        }
        Activator();
    }