public CanvasData(BehaviourMode behaviourMode, List <Polygon> polygon, Point clickCoordinates, int draggedVertexIndex) { this.behaviourMode = behaviourMode; this.polygons = polygon; this.clickCoordinates = clickCoordinates; this.clickedVertexIndex = draggedVertexIndex; }
public override void Clear() { m_BehaviourMode = BehaviourMode.None; m_BehaviourType = BehaviourType.None; m_IsAttracting = false; m_KickCooldownTimer = 0f; m_DashCooldownTimer = 0f; m_TackleCooldownTimer = 0f; m_AttractCooldownTimer = 0f; m_RecoverTimer = 0f; m_AttractTimer = 0f; m_Axes = Vector2.zero; m_AxesSpeed = Vector2.zero; }
private void SetBehaviourMode(BehaviourMode i_Mode) { m_BehaviourMode = i_Mode; }
public CanvasData(BehaviourMode doNothing) : this(doNothing, new List <Polygon>(new Polygon[] { new Polygon() }), new Point(-1, -1), -1) { }
public CanvasData(BehaviourMode behaviourMode, Point clickCoordinates) : this(behaviourMode, new List <Polygon>(new Polygon[] { new Polygon() }), clickCoordinates, -1) { }
public void SetBehaviourMode(BehaviourMode targetBehaviourMode) { _behaviourMode = targetBehaviourMode; }