Example #1
0
 public void score(int player)
 {
     if (player == 1)
     {
         Score1++;
         if (Random.Range(0, 1) < 0.5)
         {
             FM.CustomFlash(p11, "Great");
         }
         else
         {
             FM.CustomFlash(p12, "Super");
         }
     }
     if (player == 2)
     {
         Score2++;
         if (Random.Range(0, 1) < 0.5)
         {
             FM.CustomFlash(p21, "Magic");
         }
         else
         {
             FM.CustomFlash(p22, "Class");
         }
     }
 }
Example #2
0
    // Update is called once per frame
    void Update()
    {
        CurrentMouse.x = Input.mousePosition.x / Screen.width;
        CurrentMouse.y = Input.mousePosition.y / Screen.height;

        if (TEST_ME)
        {
            FlashProTemplate ret = new FlashProTemplate();
            ret.SingleLerp      = SingleLerp;
            ret.UseXLerpOnly    = UseXLerpOnly;
            ret.StartPos        = StartPos;
            ret.MiddlePos       = MiddlePos;
            ret.FinishPos       = FinishPos;
            ret.StartWidth      = StartWidth;
            ret.MiddleWidth     = MiddleWidth;
            ret.FinishWidth     = FinishWidth;
            ret.StartAlpha      = StartAlpha;
            ret.MiddleAlpha     = MiddleAlpha;
            ret.FinishAlpha     = FinishAlpha;
            ret.myMessage1      = myMessage1;
            ret.myMessage2      = myMessage2;
            ret.TextColor1      = TextColor1;
            ret.TextColor2      = TextColor2;
            ret.Xtween1         = Xtween1;
            ret.Ytween1         = Ytween1;
            ret.Xtween2         = Xtween2;
            ret.Ytween2         = Ytween2;
            ret.AnimTime        = AnimTime;
            ret.MiddleTimeRatio = MiddleTimeRatio;
            FM.CustomFlash(ret);
            TEST_ME = false;
        }
    }