コード例 #1
0
 void Start()
 {
     zombieAnimator  = GetComponent <Animator>();
     zombieRigidBody = GetComponent <Rigidbody2D>();
     zombieHealth    = GetComponent <ZombieHealth>();
     zombieMovement  = GetComponent <ZombieMovement>();
     zombieIK2D      = GetComponent <UnityEngine.U2D.IK.IKManager2D>();
 }
コード例 #2
0
 void Start()
 {
     playerAnimator      = GetComponent <Animator>();
     playerRigidBody     = GetComponent <Rigidbody2D>();
     playerIK2D          = GetComponent <UnityEngine.U2D.IK.IKManager2D>();
     almostDeadBleed     = GetComponent <AlmostDeadBleed>();
     pause               = FindObjectOfType <Pause>();
     slomoController     = FindObjectOfType <SlomoController>();
     cinemachineSwitcher = FindObjectOfType <CinemachineSwitcher>();
     win      = FindObjectOfType <Win>();
     parallax = FindObjectOfType <Parallax>();
 }