Mercurial > hg > Members > kazuma > JungleforUnity
annotate Assets/Application/Scripts/Stage.cs @ 3:2dd40b4412e4
Create game base.
author | Kazuma |
---|---|
date | Mon, 07 Nov 2016 18:42:01 +0900 |
parents | e5ef0342d00b |
children |
rev | line source |
---|---|
0 | 1 using UnityEngine; |
2 using System.Collections; | |
3 | |
4 public class Stage : MonoBehaviour { | |
5 | |
6 public Type Attribute; | |
7 | |
8 public enum Type { | |
9 SAND, | |
10 WOOD, | |
11 GRASS | |
12 }; | |
13 | |
14 public void SetPosition (Vector3 pos) { | |
15 this.transform.position = pos; | |
16 print ("Set (" + pos.x + ", " + pos.y + ", " + pos.z + ")"); | |
17 } | |
18 | |
3 | 19 public void Delete() { |
20 Destroy (this.gameObject); | |
21 } | |
22 | |
0 | 23 } |