Ejemplo n.º 1
0
    public void MinusScore(int myScore, Vector3 ufoPos, bool isUfo)
    {
        do
        {
            if (!isFriend)
            {
                break;
            }

            if ((nowFriendScore - myScore) > 0)
            {
                score.text = (nowFriendScore - myScore).ToString();
                break;
            }
            else
            {
                isFriend   = false;
                score.text = "0";
                fLength--;


                if (fLength == -1)
                {
                    fLength = 0;
                    break;
                }
                else if (isUfo)
                {
                    //Debug.Log("Make Friend!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
                    Debug.Log("fLength ::: " + fLength);
                    RankDataS friend = ValueDeliverScript.rankDataFB[fLength + 1];
                    GetComponent <ActivateScript>().FriendJailActivation(ufoPos, 1, friend.FbPic, int.Parse(friend.Flight), int.Parse(friend.Bullet), friend.FbId, int.Parse(friend.Skin), null);
                }

                StartCoroutine(ChangeFriend());
                break;
            }
        } while (false);
    }
Ejemplo n.º 2
0
 public void inputFriendInfo(RankDataS input)
 {
     friendInfo = input;
 }