// Use this for initialization #region loop void Start() { if (!TouchTracker) { TouchTracker = GetComponent <HandTouchTracker> (); } TouchTracker.HandleEnter += OnHandEnter; TouchTracker.HandleLeave += OnHandLeave; HandContactState = StateList.Init("TouchMap HandContactState", HCS_HAS_HAND, HCS_NOHAND); HandContactState.Change(HCS_NOHAND); HandContactState.StateChangedEvent += HandleHandContactStateChangedEvent; TouchingHand.HandEvent += HandleHandEvent; CursorFirstPosition = Cursor.transform.position; handlerSet = TryCPF(); }
void Start() { if (!TouchTracker) TouchTracker = GetComponent<HandTouchTracker> (); TouchTracker.HandleEnter += OnHandEnter; TouchTracker.HandleLeave += OnHandLeave; HandContactState = StateList.Init ("TouchMap HandContactState", HCS_HAS_HAND, HCS_NOHAND); HandContactState.Change (HCS_NOHAND); HandContactState.StateChangedEvent += HandleHandContactStateChangedEvent; TouchingHand.HandEvent += HandleHandEvent; CursorFirstPosition = Cursor.transform.position; handlerSet = TryCPF (); }