顯示具有 animation 標籤的文章。 顯示所有文章
顯示具有 animation 標籤的文章。 顯示所有文章

2014年8月31日 星期日

[ Unity Animation ] Palm Trees Pack

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.


[Unity Animation] Spider attacks.


The following steps is presented.
1. Start the unity and then open Asset Store Window.
2. Download the SPIDER package.

3. Open the scene of temp_scene.
4. Observe all actions of animation.

5. Create a C# file and then open the Editor of Assembly CSharp.
6. Write the programming of spider animation.
7. Build and Running