/*public void Update() { //Ease ease = new Ease( Interpolate.Ease(easeType) ); position.y = Interpolate.EaseInOutSine(startValue, endValue, elapsedTime, duration); elapsedTime += Time.deltaTime; }*/ //////////////////////////////////////////////////////////////// public static void AddMovingBanner(string text, float fontSize, Vector3 position, float scale, Interpolate.EaseType easeType, float[] introAction, float[] outroAction, float delay, BannerColor color) { var banner = new Banner( text, fontSize, position, scale, easeType, introAction, outroAction, delay, color); bannerList.Add(banner); banner.moving = true; banner.scaling = false; }
/*public Banner(string text, Vector3 position, Interpolate.EaseType easeType, float startValue, float endValue, float duration) { this.text = text; this.position = position; this.easeType = easeType; this.startValue = startValue; this.endValue = endValue; this.duration = duration; }*/ public Banner(string text, float fontSize, Vector3 position, float scale, Interpolate.EaseType easeType, float[] introAction, float[] outroAction, float delay, BannerColor color) { this.text = text; this.position = position; this.easeType = easeType; this.introAction = introAction; this.outroAction = outroAction; this.delay = delay; this.scale = scale; this.fontSize = fontSize; this.color = color; }
public TileEntityBanner(TileEntity te) : base(te) { var teb = te as TileEntityBanner; if (teb != null) { CustomName = teb.CustomName; Patterns = (BannerPattern[])teb.Patterns.Clone(); BaseColor = teb.BaseColor; } else { Patterns = new BannerPattern[0]; } }
public BannerPattern(BannerColor color, string pattern) { Color = color; Pattern = pattern; }