예제 #1
0
    // Use this for initialization
    void Start()
    {
        mySize.Animate(DeckSize(), 1f);

        myIdleRotation = transform.localRotation;

        myRotation.Animate(myIdleRotation, 1f);
    }
예제 #2
0
    void OnMouseEnter()
    {
        if (GlobalScript.ourCursorScript.myCardScript != this && null != myHandScript)
        {
            myRotation.Animate(Quaternion.Euler(0f, 0f, 0f), .2f);

            myPosition.Animate(myHandScript.CardPosition(this) + new Vector3(0f, .5f, -.1f), .2f);

            mySize.Animate(new Vector3(.5f, .75f, .01f) * 1.5f, .2f);
        }
    }