Skip to content

Instantly share code, notes, and snippets.

View jackyli-work's full-sized avatar
🎯
Wandering

Jacky Li jackyli-work

🎯
Wandering
View GitHub Profile
using System;
using System.Collections.Generic;
namespace JFun.Gameplay.MessageSystem
{
public static class HashMessageManager
{
private static Dictionary<int, Delegate> _eventHashTable = new Dictionary<int, Delegate>();
//Hash handlers that should never be removed, regardless of calling Cleanup
using UnityEngine;
public class GyroParallaxHelper : MonoBehaviour
{
[Header("Layer of Group Object")]
public RectTransform LayerObject;
[Header("Layer of Inner Image Object")]
public RectTransform LayerImage;
[Header("Layer of Background Object")]
public RectTransform LayerBackground;
using System.Collections.Generic;
using JFun.Framework;
using JFun.Gameplay.MessageSystem;
using UnityEngine;
namespace JFun.Gameplay.CreateWorld.UI
{
public class EscapeButtonController
{
private List<UIInputEventHelper> _escapeButtonList = new List<UIInputEventHelper>();
using System;
using System.Collections.Generic;
using System.Linq;
using Assets.SimpleAndroidNotifications;
using JFun.Foundation.Loggers;
using JFun.Framework;
using UnityEngine;
namespace JFun.Gameplay.CreateWorld
{
@jackyli-work
jackyli-work / CWCustomInputField.cs
Created February 29, 2020 07:16
Native Input Utility
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
namespace JFun.Gameplay.CreateWorld.UI
{
public class CWCustomInputField : InputField, ICancelHandler
{
// Action others can subsribe
// argument 2 : true: enter key, false: cancel key
@jackyli-work
jackyli-work / EnumDescriptionAttribute.cs
Created February 29, 2020 07:04
Selectable Enumeration
using System;
using System.ComponentModel;
using UnityEngine;
using System.Reflection;
namespace JFun.Gameplay.CreateWorld
{
[AttributeUsage(AttributeTargets.Field)]
public class EnumDescriptionAttribute : PropertyAttribute
{