private void SetNotice(string msg, bTreeType type, Vector2 pos) { _notice.Component<TextMesh>().text = msg; _notice.Position = pos; _controller.SetTreeType(type); nLog.Debug("Set the tree type to: " + type); }
/** Set the tree type selected */ public nView SetTreeType(bTreeType type) { _session.Game.TreeType = type; return View(); }
/** Resolve texture id */ public Texture GetTextureForTreeType(bTreeType type) { Texture rtn = null; if (type == bTreeType.TREE_1) rtn = (Texture) Resources.Load("lovie-foliage"); else if (type == bTreeType.TREE_2) rtn = (Texture) Resources.Load("nujiper-foliage"); else if (type == bTreeType.TREE_3) rtn = (Texture) Resources.Load("pamle-foliage"); return rtn; }