示例#1
0
 void Start()
 {
     dashDetector = GameObject.FindGameObjectWithTag("weaponPrefab");
     playerState  = GetComponent <MasterPlayerStateScript>();
     stamina      = GetComponent <Stamina> ();
     floor        = GameObject.FindGameObjectWithTag("Floor");
     //playerCollider = GetComponent<CharacterController> ();
 }
示例#2
0
 void Start()
 {
     dashDetector = GameObject.FindGameObjectWithTag ("weaponPrefab");
     playerState = GetComponent <MasterPlayerStateScript>();
     stamina = GetComponent<Stamina> ();
     floor = GameObject.FindGameObjectWithTag ("Floor");
     //playerCollider = GetComponent<CharacterController> ();
 }
示例#3
0
 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();
 }
示例#4
0
 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 ();
 }