Example #1
0
    public void ResultLoad()
    {
        ResultClass r = Result.GetComponent <ResultClass> ();

        r.SetInfo("Bad Apple", 3, gb.Perfect, gb.Good, gb.Fail, gb.HighestCombo, gb.GetPer(1), gb.GetPer(0), !gb.isFail());
        c.transform.localScale -= new Vector3(0.01f, 0.01f, 0f);
        c.transform.Rotate(new Vector3(0f, 0f, 4.5f), Space.Self);
        Arrow.transform.localScale -= new Vector3(0.01f, 0.01f, 0);
        Arrow.transform.Rotate(new Vector3(0f, 0f, -4.5f), Space.Self);
        if (c.transform.localScale.x < 0.01)
        {
            mode = state.Result;
            Instantiate(PageSwitcher, transform.position, transform.rotation);
        }
    }