protected virtual void Awake()
        {
            m_AnimationMonitor = GetComponent <AnimatorMonitor>();
            m_Animator         = GetComponent <Animator>();

            m_Rigidbody = GetComponent <Rigidbody>();
            m_Layers    = GetComponent <LayerManager>();

            m_Collider = GetComponent <CapsuleCollider>();
            if (m_Collider == null)
            {
                m_Collider = Collider;
            }



            m_GameObject = gameObject;
            m_Transform  = transform;

            m_DeltaTime = Time.deltaTime;

            Gravity = Physics.gravity;

            deltaTime      = Time.deltaTime;
            fixedDeltaTime = Time.fixedDeltaTime;
        }
 private void OnEnable()
 {
     if (target == null)
     {
         return;
     }
     m_AnimatorMonitor = (AnimatorMonitor)target;
     m_Animator        = m_AnimatorMonitor.GetComponent <Animator>();
 }
Ejemplo n.º 3
0
 protected virtual void Awake()
 {
     m_gameObject      = gameObject;
     m_animator        = GetComponent <Animator>();
     m_animatorMonitor = GetComponent <AnimatorMonitor>();
 }
Ejemplo n.º 4
0
 public void Initialize(AnimatorMonitor animatorMonitor, Animator animator)
 {
     m_animatorMonitor = animatorMonitor;
     m_animator        = animator;
     OnInitialize();
 }