void Start() { speedControllor = Conrtollor.GetComponent <SpeedControllor>(); pointCount = Conrtollor.GetComponent <PointCount>(); speed = speedControllor.getSpeed(); Destroy(gameObject, 10f); }
void Start() { speedControllor = Conrtollor.GetComponent <SpeedControllor>(); speed = (-1) * speedControllor.getSpeed(); Destroy(gameObject, 7); }