Exemplo n.º 1
0
    // 『ジャンプ』アイコンを作る.
    public UIIcon           createJumpIcon()
    {
        UIIcon icon = GameObject.Instantiate(this.uiJumpIconPrefab).GetComponent <UIIcon>();

        icon.GetComponent <RectTransform>().SetParent(this.uiCanvas.GetComponent <RectTransform>());

        return(icon);
    }