コード例 #1
0
    void Start()
    {
        pool = TheStackPool.instance;

        isMoveOnX = Random.Range(0, 10) >= 5 ? true : false;
        SpawnToptack();
    }
コード例 #2
0
ファイル: TheStackPool.cs プロジェクト: kenight/unity-example
    public List <GameObject> theStack;    // 每次移除将列表中最后一个位置的 stack 移动到列表第一个位置并重新赋值它的 posistion

    void Awake()
    {
        instance = this;
        InitStack();
    }
コード例 #3
0
 void Start()
 {
     pool       = TheStackPool.instance;
     originCamY = transform.position.y;
 }