public void ReplaceAxialCoord(BubblePopsC.Scripts.Components.Position.AxialCoord newValue) { var index = GameComponentsLookup.AxialCoord; var component = (BubblePopsC.Scripts.Components.Position.AxialCoordComponent)CreateComponent(index, typeof(BubblePopsC.Scripts.Components.Position.AxialCoordComponent)); component.Value = newValue; ReplaceComponent(index, component); }
public void ReplaceNudged(BubblePopsC.Scripts.Components.Position.AxialCoord newFrom, System.Action newCallback) { var index = GameComponentsLookup.Nudged; var component = (BubblePopsC.Scripts.Components.Bubble.NudgedComponent)CreateComponent(index, typeof(BubblePopsC.Scripts.Components.Bubble.NudgedComponent)); component.From = newFrom; component.Callback = newCallback; ReplaceComponent(index, component); }
public void ReplaceMergeTo(BubblePopsC.Scripts.Components.Position.AxialCoord newSpot, System.Action newCallback) { var index = GameComponentsLookup.MergeTo; var component = (BubblePopsC.Scripts.Components.Merge.MergeToComponent)CreateComponent(index, typeof(BubblePopsC.Scripts.Components.Merge.MergeToComponent)); component.Spot = newSpot; component.Callback = newCallback; ReplaceComponent(index, component); }