public void OnProjectileSpawn() { player = GameObject.FindGameObjectWithTag("Player"); playerAttach = player.GetComponent <scr_attachRopeTo>(); m_rgd = GetComponent <Rigidbody>(); inAir = true; }
void Start() { m_collider = GetComponent <Collider>(); m_rgd = GetComponent <Rigidbody>(); DGTT = GetComponent <DontGoThroughThings>(); singletonHandler = GameObject.FindGameObjectWithTag("SingletonHandler"); PSF = singletonHandler.GetComponent <scr_playerStateFunctions>(); player = GameObject.FindGameObjectWithTag("Player"); m_lineRenderer = GetComponent <LineRenderer>(); currentSoarDuration = 0; player = GameObject.FindGameObjectWithTag("Player"); playerAttach = player.GetComponent <scr_attachRopeTo>(); shouldBeDestroyed = false; }
void Start() { m_player = GameObject.FindGameObjectWithTag("Player"); if (m_player == null) { print("Couldnt Find Player"); Destroy(this); return; } pRigidbody = m_player.GetComponent <Rigidbody>(); pAttach = m_player.GetComponent <scr_attachRopeTo>(); DGTT = m_player.GetComponent <DontGoThroughThings>(); pInput = m_player.GetComponent <scr_ThirdPersonUserControl>(); pMove = m_player.GetComponent <scr_ThirdPersonCharacter>(); }