Пример #1
0
    public virtual GameObject RipElectron()
    {
        GameObject p   = UnityEngine.Object.Instantiate(this.pElectron, this.transform.position, this.transform.rotation);
        Debris     deb = (Debris)p.GetComponent(typeof(Debris));

        deb.SetSpeed(3);
        deb.timeout = 4;
        this.e--;
        return(p);
    }