Exemple #1
0
    public void Render(int shift = 0, bool flip = false)
    {
        Quaternion quat = Quaternion.AngleAxis(flip ? 50 : 230, new Vector3(1, 0, 0));

        quat *= Quaternion.AngleAxis(180, new Vector3(0, 0, 1));
        RenderMaster.Render(this, new Vector3(21 - shift * 1.3f, 0, 50), quat);
    }
Exemple #2
0
    public bool Render()
    {
        RenderMaster.Render(this, new Vector3(0, 0, 0));

        /*float x = 2.5f;
         *      float y = 2 * x;
         *      float z = x;
         * GameObject handCard;
         * for(int i = 0; i < localDeck.Cards.Count; ++i)
         * {
         *  if (!localDeck.Cards[i].isOnScreen)
         *  {
         *      handCard = (GameObject)GameObject.Instantiate(Resources.Load("FPC/PlayingCards_" + localDeck.Cards[i].value + localDeck.Cards[i].GetSuit())); //скачал бесплатные карты
         *                      handCard.transform.position = new Vector3(z - x * localDeck.Cards.Count + y * i, -5.5f, 31f - 0.1f * i) + obj.transform.position;
         *      handCard.transform.rotation *= Quaternion.AngleAxis(-90, new Vector3(1, 0, 0)); //повернул на -90 по оси X
         *      handCard.transform.localScale += new Vector3(60, 60, 0); //увеличил в 60 раз
         *
         *      localDeck.Cards[i].gameobj = handCard;
         *      localDeck.Cards[i].isOnScreen = true;
         *                      handCard.gameObject.transform.SetParent(obj.transform);
         *      //Debug.Log(Cards[i].value + " " + Cards[i].type);
         *  }
         *  else
         *  {
         *      localDeck.Cards[i].gameobj.transform.position = new Vector3(z - x * localDeck.Cards.Count + y * i, -5.5f, 31f - 0.1f * i);
         *  }
         * }
         *      isNewCards = false;
         */
        return(true);
    }
Exemple #3
0
 void RenderCard()
 {
     //(2.5f - 2.5f * Cards.Count + 5 * i, -5.5f, 31f - 0.1f * i);
     RenderMaster.Render(this, new Vector3(0, 0, 0));
 }