// Run Once when Scene is first Loaded ========================================================= void Start() { // Find Game Objects go_cam = GameObject.Find("Camera"); go_Emitter = transform.FindChild("Nanobot_Emitter").gameObject; go_Shield = transform.FindChild("pf_NanobotShield").gameObject; cc_PC = GetComponent<CharacterController>(); RestartScript = GameObject.Find ("Laser_Room").GetComponent<TL_Restart>(); // Set initial values and game states v3_direction = Vector3.zero; v3_Respawn = transform.position; }
void Start() { in_PC_Deaths = 0; PCScript = GetComponent<TL_PCMove>(); RestartScript = GameObject.Find ("Laser_Room").GetComponent<TL_Restart>(); }