我有一個實例化預製根據屏幕大小如何定位這種情況下掙扎,我下面的代碼是這樣的:= using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class UPStand : MonoBehaviour
{
public GameObject SaleButtonPrefab;
pu
所以我製作的遊戲和小行星非常相似,我不確定如何讓小行星產生出屏幕。任何幫助將非常感激。下面是小行星當前代碼: class asteroid
{
Texture2D m_txr;
public Vector2 velocity, position;
public BoundingSphere circle;
public Rectangle rect;