// Use this for initialization void Start() { numberInputObj = transform.Find("cal").GetComponent <LockerScript>(); if (numberInputObj == null) { Debug.LogError("Number Input Object not set for Locker"); } numberInputObj.closePanel(); playerObj = GameObject.FindWithTag("Player"); if (playerObj == null) { Debug.LogError("Player Object not found"); } dialogComponent = GetComponent <LockerDialogInterface>(); if (SaveLoadSystem.getInstance().atriumSceneStateArr [(int)SaveLoadSystem.AtriumSceneState.LOCKEROPEN]) { isOpened = true; } }
// Use this for initialization void Start() { parent = gameObject.transform.parent.gameObject.GetComponent <LockerScript> () as LockerScript; }