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; } }
} ///@property(readwrite,assign) float hitLine; public void SetType(FlowerBunchType inThing) { type = inThing; } ///@property(readwrite,assign) FlowerBunchType type;