processRingColor() public static method

public static processRingColor ( float speed, Renderer rend ) : void
speed float
rend Renderer
return void
    // Update is called once per frame
    void Update()
    {
        Renderer rend = transform.GetComponent <Renderer>();

        // process the ring color base on the speed
        ColorUtil.processRingColor(speed, rend);

        setFocusHighlight();

        spinRing();

        checkButtons();

        focus = false;
    }
Esempio n. 2
0
    //------------------------------------------------------------
    //----------------- Frame Update Methods ---------------------
    //------------------------------------------------------------

    // Update is called once per frame
    void Update()
    {
        Renderer rend = transform.GetComponent <Renderer>();

        // process the ring color base on the speed
        ColorUtil.processRingColor(speed, rend);

        // onfocus modify the visual appearence of the ring.
        setFocusHighlight();

        // spins ring for this frame if spin = true
        spinRing();

        checkForMouseEvents();

        // update the shiftedPostion of the ring on every frame
        //*****-------Critical-------******//
        shiftedPosition = transform.position;

        showTitlePopup();

        focus = false;         // must reset the focus to false
    }