Example #1
0
 protected void AddActive(int inputIndex, PointerParameters newParameters)
 {
     if (!activeTarget.ContainsKey(inputIndex))
     {
         activeTarget.Add(inputIndex, new List <PointerParameters>());
     }
     activeTarget[inputIndex].Add(newParameters);
 }
Example #2
0
 protected void AddSelected(int inputIndex, PointerParameters newParameters)
 {
     if (!selectedTarget.ContainsKey(inputIndex))
     {
         selectedTarget.Add(inputIndex, new List <PointerParameters>());
     }
     selectedTarget[inputIndex].Add(newParameters);
 }
Example #3
0
 protected bool IsActive(int inputIndex, RaycastHit hit, out PointerParameters enterParameters)
 {
     if (activeTarget.ContainsKey(inputIndex))
     {
         foreach (var pp in activeTarget[inputIndex])
         {
             if (pp.target == hit.collider.transform)
             {
                 enterParameters = pp;
                 return(true);
             }
         }
     }
     enterParameters = null;
     return(false);
 }
Example #4
0
 protected void AddActive(PointerParameters newParameters)
 {
     AddActive(0, newParameters);
 }
Example #5
0
 protected bool IsActive(RaycastHit hit, out PointerParameters enterParameters)
 {
     return(IsActive(0, hit, out enterParameters));
 }