Exemplo n.º 1
0
        //-------------------------------------------------------------------------
        public void create(Color color, uint et_player_rpcid, CRenderFish hit_by_bullet_fish, CRenderScene scene, string animation_name)
        {
            mScene = scene;
            mPlayerId = et_player_rpcid;

            mCSpriteFishNetGroup = new CSpriteFishNetGroup();
            mCSpriteFishNetGroup.create(mScene, color, mPlayerId, animation_name);
            mCSpriteFishNetGroup.setTrigger(true);
            mCSpriteFishNetGroup.setColor(color);
            mCSpriteFishNetGroup.onTriggerEnter += OnTriggerEnter;

            addFishList(hit_by_bullet_fish);
        }
Exemplo n.º 2
0
        //-------------------------------------------------------------------------
        public void create(Color color, uint et_player_rpcid, CRenderFish hit_by_bullet_fish, CRenderScene scene, string animation_name)
        {
            mScene    = scene;
            mPlayerId = et_player_rpcid;

            mCSpriteFishNetGroup = new CSpriteFishNetGroup();
            mCSpriteFishNetGroup.create(mScene, color, mPlayerId, animation_name);
            mCSpriteFishNetGroup.setTrigger(true);
            mCSpriteFishNetGroup.setColor(color);
            mCSpriteFishNetGroup.onTriggerEnter += OnTriggerEnter;

            addFishList(hit_by_bullet_fish);
        }