public virtual void Init()
            {
                transition = Dependancy.Get <UITransition>(gameObject, Dependancy.Scope.RecursiveToParents);

                if (transition == null)
                {
                    throw new NullReferenceException("Cannot find UI Transition for module: " + name + " to use");
                }

                UpdateState(transition.Value);

                transition.OnValueChanged += OnValueChanged;
            }
Exemplo n.º 2
0
 public virtual void Init()
 {
     Transition = GetComponent <UITransition>();
 }