コード例 #1
0
        public static void SetScreenTapDisable(GameObject go)
        {
            ScreenTap comSelect = go.GetComponent <ScreenTap>();

            if (comSelect != null)
            {
                ScreenTap.Destroy(comSelect);
            }
        }
コード例 #2
0
        public static ScreenTap SetScreenTapEnable(GameObject go)
        {
            ScreenTap comSelect = go.GetComponent <ScreenTap>();

            if (comSelect == null)
            {
                comSelect        = go.AddComponent <ScreenTap>();
                comSelect.Search = ScreenTap.SearchType.GetComponent;
            }
            return(comSelect);
        }