예제 #1
0
    void Awake()
    {
        stairs = transform.Find("Stairs").gameObject;
        scene  = stairs.GetComponent <SceneTransformation>();

        col = GetComponent <BoxCollider2D>();
    }
예제 #2
0
 void Start()
 {
     scene = GetComponent <SceneTransformation>();
 }
예제 #3
0
    public int levelChangeDirection = 1;//1 - next level, -1 - previous level

    // Use this for initialization
    void Start()
    {
        sceneFadeManager = GameObject.Find("SceneFadeManager").GetComponent <SceneTransformation>();
    }
예제 #4
0
    //private CameraFollow follow;

    void Start()
    {
        scene = GetComponent <SceneTransformation>();

        //follow = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<CameraFollow>();
    }