void Awake() { stairs = transform.Find("Stairs").gameObject; scene = stairs.GetComponent <SceneTransformation>(); col = GetComponent <BoxCollider2D>(); }
void Start() { scene = GetComponent <SceneTransformation>(); }
public int levelChangeDirection = 1;//1 - next level, -1 - previous level // Use this for initialization void Start() { sceneFadeManager = GameObject.Find("SceneFadeManager").GetComponent <SceneTransformation>(); }
//private CameraFollow follow; void Start() { scene = GetComponent <SceneTransformation>(); //follow = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<CameraFollow>(); }