Beispiel #1
0
 void OnGameStart()
 {
     UIManager.Get().MsgOnScreen("游戏开始啦!");
     AudioManager.Get().PlayBGM("1");
     AudioManager.Get().PlaySound("GameMain/GameStart", 0.05f);
     CardSystem.Get().AddCard(new Slay());
     CardSystem.Get().AddCard(new BattleHorn());
     CardSystem.Get().AddCard(new HawkEye());
     CardSystem.Get().AddCard(new Purify());
 }
Beispiel #2
0
    private void Awake()
    {
        width            = (transform as RectTransform).rect.height;
        originalPosition = transform.position.y;
        CardSystem.Get().CardContent = Content;
        CardSystem.Get().SetCardsPanel(this);
        //Debug.Log(originalPosition);
        Vector3 po = transform.position;

        po.y = originalPosition - width * HideAmount;
        transform.position = po;
    }
Beispiel #3
0
    public IEnumerator WaitForAnim_Down()
    {
        while (CardSystem.Get().Busy())
        {
            yield return(new WaitForSeconds(0.5f));
        }
        yield return(new WaitForSeconds(0.5f));

        if (!OnMouse)
        {
            Anim_Down(1f);
        }
    }
Beispiel #4
0
 public void AddCard()
 {
     CardSystem.Get().AddCard(new Slay());
 }