Ejemplo n.º 1
0
        public virtual void Move()
        {
            PlatformNode tmpNext = GetPlatformAfterMovement();

            if (tmpNext)
            {
                StartCoroutine(JumpTo(tmpNext));
                currentNode = tmpNext;
                onNodeChange.Invoke(tmpNext);
            }
        }
Ejemplo n.º 2
0
 protected virtual void RaiseNodeChangeEvent(string nodename)
 {
     // Raise the event by using the () operator.
     NodeChangeEvent?.Invoke(this, new NodeChangeEventArgs(nodename));
 }