PlanBaseStopSprite Method |
Namespace: (Default Namespace)
public virtual void StopSprite( SpriteBase Sprite )
// If active if (<see cref="M:PlanBase.IsSpriteActive(SpriteBase)" />(m_ParentLayer.m_Plasma_1)) { // If not waiting if ((m_ParentLayer.m_Plasma_1.WaitCounter == 0)) { // Move sprite towards coordinate <see cref="M:PlanBase.PushSpriteTowardCoordinate(SpriteBase,System.Int32,System.Int32)" />(m_ParentLayer.m_Plasma_1, m_ParentLayer.m_Plasma_1.CoordIndex, 40); } else { // Else stop sprite <see cref="M:PlanBase.StopSprite(SpriteBase)" />(m_ParentLayer.m_Plasma_1); } // Move to next coordinate m_ParentLayer.m_Plasma_1.CoordIndex = <see cref="M:PlanBase.CheckNextCoordinate(SpriteBase,System.Int32,System.Int32@)" />(m_ParentLayer.m_Plasma_1, m_ParentLayer.m_Plasma_1.CoordIndex, ref m_ParentLayer.m_Plasma_1.WaitCounter); }