// ================================================================ // // 生成する. public void create(Vector2 window_size, Font font, int font_size) { this.window_size = window_size; this.font = font; this.font_size = font_size; this.waku = BotanRoot.get().createWaku(this.window_size); this.waku.setPosition(new Vector2(0.0f, 128.0f)); }
public static BotanRoot get() { if (BotanRoot.instance == null) { GameObject go = GameObject.Find("BotanRoot"); if (go != null) { BotanRoot.instance = go.GetComponent <BotanRoot>(); } else { Debug.LogError("Can't find game object \"BotanRoot\"."); } } return(BotanRoot.instance); }