//EVERYTHING IN THIS SCRIPT USES LOCALPOSITION void Awake() { traySlot = transform.FindChild("TraySlot"); eyeSlot = transform.FindChild("EyeSlot"); _tray = GameObject.Find("Tray").GetComponent <Tray>(); dramaLight = GameObject.Find("DramaLight"); r_sleepScript = GameObject.Find("Player").GetComponent <SleepingAndWaking>(); audio = GetComponent <AudioSource>(); }
public override void Awake() { base.Awake(); r_sleepingAndWaking = player.GetComponent <SleepingAndWaking>(); r_dreamController = GameObject.Find("MainController").GetComponent <DreamController>(); r_cellManager = GameObject.Find("CellManager").GetComponent <CellManager>(); r_rotate = GetComponent <Rotate>(); r_dreamText = GameObject.Find("Dream Canvas").GetComponent <DreamText>(); }
public override void Awake() { base.Awake(); tag = "Untagged"; floodWater = GameObject.Find("FloodWater"); toiletWater = GameObject.Find("ToiletWater"); r_sleepScript = GameObject.Find("Player").GetComponent <SleepingAndWaking>(); movePosition = transform.position; }
void Awake() { player = GameObject.Find("Player"); _sleepingAndWaking = player.GetComponent <SleepingAndWaking>(); _needs = player.GetComponent <Needs>(); _FPSController = player.GetComponent <FirstPersonController>(); _dreamText = GameObject.Find("Dream Canvas").GetComponent <DreamText>(); _dayManager = GetComponent <DayManager>(); m_CamBackground = Camera.main.gameObject.GetComponent <CamBackgroundColor>(); r_sleepScript = GameObject.Find("Player").GetComponent <SleepingAndWaking>(); LoadScene(Scenes.Cell); }
public override void Awake() { base.Awake(); tag = "Untagged"; cam = Camera.main; r_mouseLook = player.GetComponent <FirstPersonController>().m_MouseLook; flameArray = GetComponentsInChildren <Rotate>(); fireLight = GetComponentInChildren <Light>(); lightIntensityNormal = fireLight.intensity; flameRotateSpeedNormal = GetComponentInChildren <Rotate>().speed; particles = GetComponentInChildren <ParticleSystem>(); r_sleepScript = GameObject.Find("Player").GetComponent <SleepingAndWaking>(); }
// Use this for initialization private void Start() { Cursor.visible = false; Cursor.lockState = CursorLockMode.Locked; m_CharacterController = GetComponent<CharacterController>(); m_Camera = Camera.main; m_OriginalCameraPosition = m_Camera.transform.localPosition; m_FovKick.Setup(m_Camera); m_HeadBob.Setup(m_Camera, m_StepInterval); m_StepCycle = 0f; m_NextStep = m_StepCycle/2f; m_Jumping = false; m_AudioSource = GetComponent<AudioSource>(); m_MouseLook.Init(transform , m_Camera.transform); m_SleepingAndWaking = GetComponent<SleepingAndWaking>(); }
// Use this for initialization void Start() { player = GameObject.Find("Player"); topEyelid = GameObject.Find("TopEyelid"); topEyelid_Rect = topEyelid.GetComponent <RectTransform>(); bottomEyelid = GameObject.Find("BottomEyelid"); bottomEyelid_Rect = bottomEyelid.GetComponent <RectTransform>(); r_mouseLook = player.GetComponent <FirstPersonController>().m_MouseLook; cam = Camera.main; blur = cam.GetComponent <BlurOptimized>(); r_sleepingScript = GameObject.Find("Player").GetComponent <SleepingAndWaking>(); normal_Y_TopEyelid = topEyelid_Rect.anchoredPosition.y; normal_Y_BottomEyelid = bottomEyelid_Rect.anchoredPosition.y; }
public override void Awake() { base.Awake(); sleepingScript = player.GetComponent <SleepingAndWaking>(); }