public void Trigg() { Debug.Log($"{this.name}: Trigged"); // note: the animation is updated within the setter of `ShapeSlot.Value`. this.Value = ShapeSlot.CalcNextShape(this.Value); this.InvokeOnTrigger(); //TO_IDO: Add Key code SFX SFXPlayer.instance.PlaySFX(SFXPlayer.instance.keyCodeSFX); }
public static CodeShape CalcNextShape(CodeShape current) { return((CodeShape)(1 + ((int)current % SHAPES_AMOUNT))); }