run() public method

public run ( ) : void
return void
Esempio n. 1
0
    void move_card(CCardPicture card_picture, Vector3 begin, Vector3 to, float duration = 0.1f)
    {
        if (card_picture.card != null)
        {
            card_picture.update_image(get_hwatoo_sprite(card_picture.card));
        }
        else
        {
            card_picture.update_image(this.back_image);
        }

        CMovingObject mover = card_picture.GetComponent <CMovingObject>();

        mover.begin    = begin;
        mover.to       = to;
        mover.duration = duration;
        mover.run();
    }
    void move_card(CCardPicture card_picture, Vector3 begin, Vector3 to, float duration = 0.1f)
    {
        if (card_picture.card != null)
        {
            int sprite_index = card_picture.card.number * 4 + card_picture.card.position;
            card_picture.update_image(this.hwatoo_sprites[sprite_index]);
            //Debug.Log(sprite_index + ", " + this.hwatoo_sprites[sprite_index].name);
        }
        else
        {
            card_picture.update_image(this.back_image);
        }

        CMovingObject mover = card_picture.GetComponent <CMovingObject>();

        mover.begin    = begin;
        mover.to       = to;
        mover.duration = duration;
        mover.run();
    }