void Start() { DragParticle dp = transform.GetChild(0).gameObject.AddComponent(typeof(DragParticle)) as DragParticle; dp.SetParticleClass(this); origPosition = transform.position; }
public void SetCurrentDragParticle(DragParticle pc) { currentDragParticle = pc; }
public void SetParticleClass(DragParticle dp) { pc = dp.GetParticleClass(); //Debug.Log(pc); }