// Start is called before the first frame update void Start() { rb = GetComponent <Rigidbody2D>(); InvokeRepeating("randomposi", 0.2f, 0.8f); Physics2D.queriesStartInColliders = false; ebv = GameObject.Find("EBulletInstance1").GetComponent <EbulletInstance>(); }
// Start is called before the first frame update void Start() { rb = GetComponent <Rigidbody2D>(); InvokeRepeating("randomposi", 0.2f, 0.8f); ebv = GameObject.Find("EBulletInstance1").GetComponent <EbulletInstance>(); }
// Start is called before the first frame update void Start() { ebs = GameObject.Find("EBulletInstance1").GetComponent <EbulletInstance>(); }