private void Start() { //player = GameObject.FindGameObjectWithTag("Player").GetComponent<playerController>(); //enemy = GameObject.FindGameObjectWithTag("Enemy").GetComponent<enemy>(); rb = GetComponent <Rigidbody2D>(); enemy = GetComponent <enemyHealth>(); rb.velocity = moveDir * speed; puller = objectPuller.Instance; }
private void Start() { objectPooler = objectPuller.Instance; }
private void Awake() { Instance = this; }