public override void OnCreate(SequenceBehaviour sequence, IReadOnlyList <Blackboard> blackboards)
        {
            Blackboard.Bind(blackboards, m_Effect);
            Blackboard.Bind(blackboards, m_Locator);

            m_Particle = new Particle(m_Effect.Value, m_Locator.Value);
        }
Пример #2
0
        public void Initialize()
        {
            Dispose();

            Blackboard.Bind(this);
            Director.AddBlackboard(Blackboard);

            m_GraphController = new AnimationGraph(name, Animator, 2);

            m_SequenceHandler        = m_GraphController.CreateMixer(2);
            m_SequenceHandler.Weight = 1f;
            if (Application.isPlaying)
            {
                m_AnimatorHandler        = m_GraphController.Add(m_AnimatorController);
                m_AnimatorHandler.Weight = 1f;
            }
        }
        public override void OnCreate(IReadOnlyList <Blackboard> blackboards)
        {
            Blackboard.Bind(blackboards, m_BlendableAnimator);

            if (m_BlendableAnimator.Value == null)
            {
                return;
            }

            var animator    = m_BlendableAnimator.Value;
            var initialized = animator.IsInitialized;

            if (!initialized)
            {
                animator.Initialize();
            }

            m_Animator = animator;

            if (!initialized)
            {
                animator.SetSequenceWeight(1f);
            }
        }
Пример #4
0
 private void OnValidate()
 {
     Blackboard.Bind(this);
     Director.AddBlackboard(Blackboard);
 }
 public override void OnCreate(SequenceBehaviour sequence, IReadOnlyList <Blackboard> blackboards)
 {
     Blackboard.Bind(blackboards, m_Interrupt);
 }
 public override void OnCreate(SequenceBehaviour sequence, IReadOnlyList <Blackboard> blackboards)
 {
     m_IsInterrupted = false;
     Blackboard.Bind(blackboards, m_RestartData);
 }
Пример #7
0
 public override void OnCreate(SequenceBehaviour sequence, IReadOnlyList <Blackboard> blackboards)
 {
     m_Graph = ((PlayableSequence)sequence).Graph;
     Blackboard.Bind(blackboards, m_Clip);
 }