Exemple #1
0
        public void Register(AxisEvent evnt, AxisEventFunction _callback)
        {
            int index = axis.IndexOf(evnt);

            if (index >= 0)
            {
                axis.RemoveAt(index);
                callback.RemoveAt(index);
            }

            axis.Add(evnt);
            callback.Add(_callback);
        }
Exemple #2
0
 public void RegisterInputAxis(AxisEvent evnt, AxisEventFunction callback)
 {
     axisManager.Register(evnt, callback);
 }