async public Task AppearSeal(int index) { var currentSeal = SealSlotDisplays.GetChild <SealSlot>(index); currentSeal.ShowSlot(BattleScene.SealSlots[index]); currentSeal.Change(BattleScene.SealSlots[index]); await ToSignal(currentSeal.MyTween, "tween_completed"); }
async public Task DisappearSeal(int index) { var currentSeal = SealSlotDisplays.GetChild <SealSlot>(index); currentSeal.Change(Element.None); await ToSignal(currentSeal.MyTween, "tween_completed"); currentSeal.ShowSlot(Element.None); currentSeal.Modulate = new Color(1, 1, 1, 1); }
public void DisplaySeals() { int i = 0; foreach (var slot in BattleScene.SealSlots) { SealSlotDisplays.GetChild <SealSlot>(i).ShowSlot(slot); RayCircle.SetSlot(slot, i); i++; } }
// async public Task ReplaceSeal (int index) { // // await DisappearSeal(index); // await AppearSeal(index); // } async public Task MoveSeal(int index, int indexTo, Element element) //By default, willmove the element that is at index { var fromSeal = SealSlotDisplays.GetChild <SealSlot>(index); var toSeal = SealSlotDisplays.GetChild <SealSlot>(indexTo); fromSeal.ShowSlot(element); fromSeal.MoveTo(toSeal.RectPosition - fromSeal.RectPosition); await ToSignal(fromSeal.MyTween, "tween_completed"); toSeal.ShowSlot(element); // fromSeal.ShowSlot(Element.None); }
public SealSlot GetSeal(int i) { return(SealSlotDisplays.GetChild <SealSlot>(i)); }