public void Awake()
    {
        enemy = GetComponent <SSEnemy>();
        Vector3 screenSize = new Vector3(Screen.width, Screen.height);

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