public void Play(TileAnimationHukidashi.Type type) { this.hukidashi.spriteName = "fuki_" + (int)(type + 1); this.hukidashi.MakePixelPerfect(); this.BreakNum.text = string.Empty; this.Show(type); }
private void Show(TileAnimationHukidashi.Type type) { this.TwPos.ResetToBeginning(); this.TwAlpha.ResetToBeginning(); if (type == TileAnimationHukidashi.Type.TankerLost) { this.TwPos.from = this.TankerLostPos; } else { this.TwPos.from = this.DamagePos; } this.TwPos.PlayForward(); this.TwAlpha.PlayForward(); }