1ea616dd60
Enemy balance, added upgrades, added score, added menu
18 lines
356 B
C#
18 lines
356 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class CameraHandler : MonoBehaviour
|
|
{
|
|
public GameObject cameraPos;
|
|
|
|
void OnTriggerEnter2D(Collider2D other)
|
|
{
|
|
if (other.CompareTag("Player"))
|
|
{
|
|
Camera.main.transform.position = cameraPos.transform.position;
|
|
}
|
|
}
|
|
|
|
}
|