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);
沒有留言:
張貼留言