Пример #1
0
 // Use this for initialization
 void Awake()
 {
     _rb2d = gameObject.GetComponent<Rigidbody2D> ();
     _rb2d.velocity = _velocity * Speed;
     _puller = new ObjectPuller ()
     {
         MinListLength = 2 * SampleList.Length,
         SampleList = this.SampleList
     };
     _puller.PopulatePullList ();
 }
Пример #2
0
 private void Awake()
 {
     Instance = this;
 }
Пример #3
0
 void Awake()
 {
     current = this;
 }