예제 #1
0
 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;
 }
예제 #2
0
 private void Start()
 {
     objectPooler = objectPuller.Instance;
 }
예제 #3
0
 private void Awake()
 {
     Instance = this;
 }