public virtual void Move() { PlatformNode tmpNext = GetPlatformAfterMovement(); if (tmpNext) { StartCoroutine(JumpTo(tmpNext)); currentNode = tmpNext; onNodeChange.Invoke(tmpNext); } }
protected virtual void RaiseNodeChangeEvent(string nodename) { // Raise the event by using the () operator. NodeChangeEvent?.Invoke(this, new NodeChangeEventArgs(nodename)); }