예제 #1
0
 protected override void AffectObject()
 {
     controller = affectedGameObject.GetComponent <NGNEntityStateController>();
     if (controller)
     {
         //controller.SetCurrentState(state);
     }
 }
 public void Initialize(NGNEntityStateController _controller)
 {
     controller = _controller;
     transition.Initialize(DoTransition);
 }
예제 #3
0
 protected virtual void OnEnable()
 {
     source    = (NGNEntityStateController)target;
     sourceRef = serializedObject;
     GetProperties();
 }