// Use this for initialization void Awake() { playerMovement = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMovement>(); raycastDetection = GameObject.FindGameObjectWithTag("Player").GetComponent <RaycastDetection>(); leftCornerList = GameObject.FindGameObjectsWithTag("LeftCorner"); rightCornerList = GameObject.FindGameObjectsWithTag("RightCorner"); }
void Awake() { //Obtain components rb = GetComponent <Rigidbody>(); playerRotation = GetComponent <PlayerRotation>(); raycastDetection = GetComponent <RaycastDetection>(); animator = GetComponent <Animator>(); changeForm = GetComponent <ChangeForm>(); respawnPos = transform.position; }
void Awake() { //Obtain components rb = GetComponent <Rigidbody>(); playerRotation = GetComponent <PlayerRotation>(); raycastDetection = GetComponent <RaycastDetection>(); animator = GetComponent <Animator>(); respawnPos = transform.position; gravityBody = GetComponent <GravityBody>(); gravityBody.enabled = false; }
// Use this for initialization void Start() { rayDet = GetComponent <RaycastDetection>(); playerMovement = GetComponent <PlayerMovement>(); }
// Use this for initialization void Start() { rayDet = FindObjectOfType <RaycastDetection>(); }