Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     wraper     = this.GetComponent <Wraper> ();
     bulletTime = bulletLifeSpan;
     velocity   = transform.right.normalized * speed;
     started    = true;
 }
Ejemplo n.º 2
0
 void Start()
 {
     heading      = Vector3.right;
     velocity     = Vector3.zero;
     acceleration = Vector3.zero;
     wraper       = this.GetComponent <Wraper> ();
 }
Ejemplo n.º 3
0
    /// <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> ();
    }
Ejemplo n.º 4
0
 public static Wraper <T> Wrap(T node)
 {
     if (_Wrapper == null)
     {
         _Wrapper = new Wraper <T>();
     }
     _Wrapper.WrappedNode = node;
     return(_Wrapper);
 }
Ejemplo n.º 5
0
 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);
 }