void Awake() { _instance = this; time = 0; nexttime = 0; roundIndex = 0; countIndex = 0; DiskProductor ini = DiskProductor.Instance(); //初始化碟子工厂 }
void CreateDisk() { Vector3 _position = lunchPosition.position + new Vector3(Random.Range(-2, 2), Random.Range(-2, 2), Random.Range(-2, 2)); Vector3 _velocity = new Vector3(-1f, Random.Range(-0.125f, 0.125f), 0); GameObject obj = DiskProductor.Instance().Create(_position, _velocity, 15f); }
public void DestroyItSelf() { DiskProductor.Instance().Return(poolIndex); }