Ejemplo n.º 1
0
 /*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;
 }
Ejemplo n.º 2
0
 /*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;
 }
Ejemplo n.º 3
0
        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];
            }
        }
Ejemplo n.º 4
0
 public BannerPattern(BannerColor color, string pattern)
 {
     Color   = color;
     Pattern = pattern;
 }