2014年8月31日 星期日

[ Unity Animation ] Palm Trees Pack

video
1. Download and import the package of Palm Trees Pack.

2. We add some code in the method of Setup.


The variable of trees is defined as follows.
private var trees:GameObject;

The some codes are added in the method of Setup in order to adjust the position in the Screen.
trees = GameObject.Find("All PalmTrees");
trees.transform.localScale = Vector3(0.5f, 0.5f, 0.5f);
trees.transform.position += Vector3(-0.2f, -0.4f, 0.0f);

 3. _The property of WaveAndDistance is found in Waving DoublePassCullBackface located in the the folder of Shaders.


沒有留言:

張貼留言