public void Awake() { enemy = GetComponent <SSEnemy>(); Vector3 screenSize = new Vector3(Screen.width, Screen.height); screenBounds = Camera.main.ScreenToWorldPoint(new Vector3(screenSize.x, screenSize.y)); }
public void Awake() { enemy = GetComponent<SSEnemy>(); Vector3 screenSize = new Vector3(Screen.width, Screen.height); screenBounds = Camera.main.ScreenToWorldPoint(new Vector3(screenSize.x, screenSize.y)); }