Ejemplo n.º 1
0
    void SelectObstacle()
    {
        PassPlayer = false;
        int i = bl_ObstaclesManager.Instance.SelectNext(AllObstacles);

        foreach (bl_Obstacle o in AllObstacles)
        {
            if (o.ID == i)
            {
                o.gameObject.SetActive(true);
                bl_ObstaclesManager.Instance.SetLastObstacle(o);
                ActiveObstacle = o;
            }
            else
            {
                o.gameObject.SetActive(false);
            }
        }
    }
Ejemplo n.º 2
0
 public void SetLastObstacle(bl_Obstacle obs)
 {
     LastObstacle = obs;
 }