// Use this for initialization void Start() { // some initializations variables m_player = GetComponent <APCharacterController>(); m_anim = GetComponent <Animator>(); m_godMode = false; m_godModeTime = 0f; // save ref to our sample GUI here m_gui = GameObject.FindObjectOfType <APSampleGUI>(); }