// Use this for initialization void Start() { wraper = this.GetComponent <Wraper> (); bulletTime = bulletLifeSpan; velocity = transform.right.normalized * speed; started = true; }
void Start() { heading = Vector3.right; velocity = Vector3.zero; acceleration = Vector3.zero; wraper = this.GetComponent <Wraper> (); }
/// <summary> /// the start called for all instances /// </summary> void Start() { Sprite s = shapes [Random.Range(0, shapes.Count)]; this.GetComponent <SpriteRenderer> ().sprite = s; wraper = this.GetComponent <Wraper> (); }
public static Wraper <T> Wrap(T node) { if (_Wrapper == null) { _Wrapper = new Wraper <T>(); } _Wrapper.WrappedNode = node; return(_Wrapper); }
public static ITitled Wrap(ITitled node) { if (node != null) { var item = node as ItemType; if (item != null && item.PageType == PageType.Question) { return(ExaminationWrapper.Wrap(item)); } return(Wraper <ITitled> .Wrap(node)); } return(null); }