示例#1
0
文件: Shoot.cs 项目: walthill/gundum
 private void Awake()
 {
     bulletDirection = -muzzle.right;
     shotsLeft       = shotsPerClip;
     PAS             = GetComponentInParent <playerAudioScr>();
     SHAKE           = Camera.main.GetComponent <ShakeCamera>();
 }
示例#2
0
 void Awake()
 {
     PAS       = GetComponent <playerAudioScr>();
     followCam = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <FollowCamera>();
     rb        = GetComponent <Rigidbody2D>();
     jumpVec   = new Vector2(0, jumpForce);
 }
示例#3
0
 void Awake()
 {
     PAS  = GetComponent <playerAudioScr>();
     rb   = GetComponent <Rigidbody2D>();
     JUMP = GetComponent <Jump>();
 }