示例#1
0
    // Use this for initialization
    public void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        levelPoolEven    = new List <GameObject>();
        levelPoolOdd     = new List <GameObject>();
        noWallSectorEven = new List <NoWallSector>();
        wallSectorEven   = new List <WallSector>();
        noWallSectorOdd  = new List <NoWallSector>();
        wallSectorOdd    = new List <WallSector>();
        levelPoolEven.Clear();
        levelPoolOdd.Clear();
        noWallSectorEven.Clear();
        wallSectorEven.Clear();
        noWallSectorOdd.Clear();
        wallSectorOdd.Clear();

        colliderChecker = false;
        height          = 0;
        levelNumber     = 0;
        _depth          = DEPTH.A;

        MakePool();
        CheckLevel();
    }
示例#2
0
 public void OnRestart()
 {
     colliderChecker = false;
     height          = 0;
     levelNumber     = 0;
     _depth          = DEPTH.A;
     MoveToVoidAndGetScripts();
     CheckLevel();
 }