private void Awake() { CharAnim = GetComponent <Animator>(); AirMove = GetComponent <Movement>(); rb = GetComponent <Rigidbody2D>(); SpecialMove = GetComponent <SpecialCharacterMovement>(); LassoMove = GetComponentInChildren <ThrowLasso>(); }
private void Awake() { availableJumps = MaxJumps; rb = GetComponent <Rigidbody2D>(); SpecMove = GetComponent <SpecialCharacterMovement>(); abilityWheel = GetComponent <AbilityWheel>(); DustParticle.Stop(); PlayerInput = GetComponent <PlayerInputs>(); }
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; }