Example #1
0
    void Start()
    {
        DragParticle dp = transform.GetChild(0).gameObject.AddComponent(typeof(DragParticle)) as DragParticle;

        dp.SetParticleClass(this);
        origPosition = transform.position;
    }
Example #2
0
 public void SetCurrentDragParticle(DragParticle pc)
 {
     currentDragParticle = pc;
 }
Example #3
0
 public void SetParticleClass(DragParticle dp)
 {
     pc = dp.GetParticleClass();
     //Debug.Log(pc);
 }