// Use this for initialization void Start() { controller = GetComponent <CharacterController>(); speed = 10.0f; health = 100.0f; playerRB = gameObject.GetComponent <Rigidbody> (); // Cursor.lockState = CursorLockMode.Locked; bs = GameObject.FindGameObjectWithTag("Canvas").GetComponentInChildren <BloodSc>(); }
// Use this for initialization void Start() { moveAnim = false; gravity = 14.0f; jumpForce = 10.0f; speed = 10.0f; health = 100.0f; // Cursor.lockState = CursorLockMode.Locked; bs = GameObject.FindGameObjectWithTag("Canvas").GetComponentInChildren <BloodSc>(); controller = gameObject.GetComponent <CharacterController> (); pAnim = gameObject.GetComponent <Animator> (); // sword = gameObject. }