Fix bug that mini core

1. CCPartcleSystem parameter is not defined.
2. Caused insertion error.
3. Modify the sample