public void SetState(string _nextstate) { switch (_nextstate) { case "None": this.State = CudeState.None; break; case "Can": this.State = CudeState.CanBuild; break; case "Not": this.State = CudeState.UnBuild; break; case "Was": this.State = CudeState.Wasbuild; break; } }
void Start() { State = CudeState.None; CubeSkin = GetComponent <MeshRenderer>(); }