Ejemplo n.º 1
0
 private void Update()
 {
     if (m_callback != null && (m_summonView.transform.position - transform.position).magnitude <= m_movementDoneMinDistance)
     {
         m_callback();
         m_callback = null;
     }
 }
Ejemplo n.º 2
0
 public void OnMoveEntity(Object p_sender, EventArgs p_args, OnSummonMoveFinishedCallback p_callback)
 {
     if (m_callback != null)
     {
         Debug.LogError("SummonMovementTimingView: core moved this summon for a second time, before the first movement was fully executed!");
     }
     m_callback = p_callback;
 }