// 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 (); }
private void Awake() { Instance = this; }
void Awake() { current = this; }