// Start is called before the first frame update void Start() { _weaponNumber = 1; _playerBody = GetComponent <Rigidbody2D>(); shootProjectile = GetComponent <WeaponsHandler>(); _playerAnimator = GetComponent <Animator>(); _shield = GameObject.Find("PlayerShield").GetComponent <ShieldHandler>(); _gameStateManager = GameObject.Find("Game State Manager").GetComponent <GameStateManager>(); ShowHideWeaponUI(); ShowSelectedWeapon(); }
// Start is called before the first frame update void Start() { shieldHandler = GetComponentInParent <ShieldHandler>(); baseAngle = angle; }
private void Awake() { Instance = this; }