public override void StartWithTarget(CozyNode target) { Total = 0; NextDt = InnerAction.Duration / Duration; base.StartWithTarget(target); InnerAction.StartWithTarget(target); }
public void RemoveAllActionsWithTarget(CozyNode target) { if(Targets.ContainsKey(target)) { Targets[target].Clear(); Targets.Remove(target); } }
public void RemoveAllActionsWithTarget(CozyNode target) { if (Targets.ContainsKey(target)) { Targets[target].Clear(); Targets.Remove(target); } }
public void AddChind(CozyNode child, int zorder = 0) { if (child == null) { return; } InsertChild(child, zorder); child.Parent = this; }
public void RemoveChild(CozyNode child) { if (Children.Count <= 0) { return; } if (Children.Contains(child)) { DetachChild(child); } }
public override void StartWithTarget(CozyNode target) { base.StartWithTarget(target); if(Animaction.RestoreOriginalFrame) { OrigFrame = (Target as CozySprite).Texture; } NextFrame = 0; ExecutedLoops = 0; }
public override void StartWithTarget(CozyNode target) { base.StartWithTarget(target); if (Animaction.RestoreOriginalFrame) { OrigFrame = (Target as CozySprite).Texture; } NextFrame = 0; ExecutedLoops = 0; }
public void AddAction(CozyAction action, CozyNode node, bool paused = false) { List<CozyAction> elemt = null; if(Targets.ContainsKey(node)) { elemt = Targets[node]; } else { elemt = new List<CozyAction>(); Targets[node] = elemt; } elemt.Add(action); action.StartWithTarget(node); }
public void AddAction(CozyAction action, CozyNode node, bool paused = false) { List <CozyAction> elemt = null; if (Targets.ContainsKey(node)) { elemt = Targets[node]; } else { elemt = new List <CozyAction>(); Targets[node] = elemt; } elemt.Add(action); action.StartWithTarget(node); }
public void RemoveAction(CozyAction action) { CozyNode target = action.OriginalTarget; if (target != null) { if (Targets.ContainsKey(target)) { var elemt = Targets[target]; int index = elemt.IndexOf(action); if (index != -1) { elemt.RemoveAt(index); } } } }
public override void StartWithTarget(CozyNode target) { base.StartWithTarget(target); PositionDelta = EndPosition - StartPosition; }
public override void StartWithTarget(CozyNode target) { base.StartWithTarget(target); Split = Actions[0].Duration / Duration; Last = -1; }
public override void StartWithTarget(CozyNode target) { base.StartWithTarget(target); Elapsed = 0.0f; FirstTick = true; }
public virtual void StartWithTarget(CozyNode target) { OriginalTarget = Target = target; }
public override void StartWithTarget(CozyNode target) { base.StartWithTarget(target); StartPosition = target.Position; }
public void DetachChild(CozyNode child) { child.Parent = null; Children.Remove(child); }
public void InsertChild(CozyNode child, int zorder = 0) { child.ZOrder = zorder; Children.Add(child); IsChildDirty = true; }
public void AddChind(CozyNode child, int zorder = 0) { if (child == null) return; InsertChild(child, zorder); child.Parent = this; }
public void RemoveChild(CozyNode child) { if (Children.Count <= 0) return; if(Children.Contains(child)) { DetachChild(child); } }