Esempio n. 1
0
        public void AddToScene(FlowerBunchInfo info)
        {
            stillHasMapObject = true;
            position          = info.position;
            state             = FlowerBunchState.kFlowerBunchActive;
            mapObjectId       = info.mapObjectId;
            shadowMapObjectId = info.shadowMapObjectId;
            type       = info.type;
            hitLine    = info.position.y - 25;
            isSquashed = false;
            if (((int)type == (int)FlowerBunchType.kFlowerBunch_Pink) || ((int)type == (int)FlowerBunchType.kFlowerBunch_Lilac))
            {
                hitLine -= 20.0f;
            }

            for (int i = 0; i < Constants.MAX_PLAYERS; i++)
            {
                hasBeenHitBy[i] = false;
            }
        }
Esempio n. 2
0
        }                                                 ///@property(readwrite,assign) float hitLine;

        public void SetType(FlowerBunchType inThing)
        {
            type = inThing;
        }                                                     ///@property(readwrite,assign) FlowerBunchType type;