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

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

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

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

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