void Start() { dashDetector = GameObject.FindGameObjectWithTag("weaponPrefab"); playerState = GetComponent <MasterPlayerStateScript>(); stamina = GetComponent <Stamina> (); floor = GameObject.FindGameObjectWithTag("Floor"); //playerCollider = GetComponent<CharacterController> (); }
void Start() { dashDetector = GameObject.FindGameObjectWithTag ("weaponPrefab"); playerState = GetComponent <MasterPlayerStateScript>(); stamina = GetComponent<Stamina> (); floor = GameObject.FindGameObjectWithTag ("Floor"); //playerCollider = GetComponent<CharacterController> (); }
void Start() { //cm = gameObject.GetComponent<MousePickingScript> (); //walkSpeed = move.movement.maxForwardSpeed; //runSpeed = walkSpeed * 3; playerState = GetComponent <MasterPlayerStateScript>(); staminaRect = new Rect(Screen.width / 10, Screen.height * 9 / 10, Screen.width / 3, Screen.height / 50); staminaTexture = new Texture2D(1, 1); staminaTexture.SetPixel(0, 0, Color.white); staminaTexture.Apply(); }
void Start() { //cm = gameObject.GetComponent<MousePickingScript> (); //walkSpeed = move.movement.maxForwardSpeed; //runSpeed = walkSpeed * 3; playerState = GetComponent <MasterPlayerStateScript>(); staminaRect=new Rect(Screen.width/10,Screen.height*9/10, Screen.width / 3, Screen.height / 50); staminaTexture = new Texture2D(1, 1); staminaTexture.SetPixel(0, 0, Color.white); staminaTexture.Apply (); }