private void CellEventOnEnter(ISwipable obj) { if (_from != null) { _to = obj; if (_from.MyId != _to.MyId) { // Debug.Log(string.Format("Swipe from {0} to {1}",_from.MyId.ToString(),_to.MyId.ToString())); GameEvent.Swipe(_from as ICell, _to as ICell); _from = null; _to = null; } else { _to = null; } } }
public static void Enter (ISwipable cell) { if (OnEnter != null) OnEnter (cell); }
public static void Up (ISwipable cell) { if (OnUp != null) OnUp (cell); }
public static void Down (ISwipable cell) { if (OnDown != null) OnDown (cell); }
private void CellEventOnDown(ISwipable obj) { _from = obj; }
private void CellEventOnOnUp(ISwipable obj) { _from = null; }