Exemple #1
0
        public void BindEvent(PropertyName name, UnityAction <float> action)
        {
            UnityEventFloatParam gotEvent;

            if (!_events.TryGetValue(name, out gotEvent))
            {
                _events.Add(name, gotEvent = new UnityEventFloatParam());
            }

            gotEvent.AddListener(action);
        }