Beispiel #1
0
        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;
                }
            }
        }
Beispiel #2
0
		public static void Enter (ISwipable cell) {
			if (OnEnter != null)
				OnEnter (cell);
		}
Beispiel #3
0
		public static void Up (ISwipable cell) {
			if (OnUp != null)
				OnUp (cell);
		}
Beispiel #4
0
		public static void Down (ISwipable cell) {
			if (OnDown != null)
				OnDown (cell);
		}
Beispiel #5
0
 private void CellEventOnDown(ISwipable obj)
 {
     _from = obj;
 }
Beispiel #6
0
 private void CellEventOnOnUp(ISwipable obj)
 {
     _from = null;
 }