コード例 #1
0
 private void Awake()
 {
     CharAnim    = GetComponent <Animator>();
     AirMove     = GetComponent <Movement>();
     rb          = GetComponent <Rigidbody2D>();
     SpecialMove = GetComponent <SpecialCharacterMovement>();
     LassoMove   = GetComponentInChildren <ThrowLasso>();
 }
コード例 #2
0
 private void Awake()
 {
     availableJumps = MaxJumps;
     rb             = GetComponent <Rigidbody2D>();
     SpecMove       = GetComponent <SpecialCharacterMovement>();
     abilityWheel   = GetComponent <AbilityWheel>();
     DustParticle.Stop();
     PlayerInput = GetComponent <PlayerInputs>();
 }
コード例 #3
0
 private void Awake()
 {
     this.enabled = false;
     // components
     CharMovement = GetComponentInParent <Movement>();
     SpecialMove  = CharMovement.GetComponent <SpecialCharacterMovement>();
     Char_rb      = CharMovement.GetComponent <Rigidbody2D>();
     // pointer
     LassoPointerObj = Instantiate(LassoPointerPrefab).transform;
     LassoPointerObj.gameObject.SetActive(false);
     grappleLasso.enabled = false;
     // refresh
     refreshed = true;
 }