// ------------------------------------------ // Start is called before update // ------------------------------------------ void Start() { // Clear the terminal recognition m_onTerminal = false; // Get the player object m_inputs = GameObject.FindGameObjectWithTag("Player").GetComponent <playerInputs>(); }
private playerInputs m_player; // Instance of the player // ------------------------------------------ // Start is called before update // ------------------------------------------ void Start() { // Get the image and original sprite m_btn = GetComponent <Image>(); m_original = m_btn.sprite; // Get the player m_player = GameObject.FindGameObjectWithTag("Player").GetComponent <playerInputs>(); }