void Start() { shocker = GetComponent <SpriteShocker>(); cam = Camera.main; motor = GetComponent <CharacterMotor>(); grenadeCount = 3; GameManager.main.grenadeBar.updateGrenades(grenadeCount); }
void Start() { motor = GetComponent <CharacterMotor>(); target = GameManager.main.player.transform; shocker = GetComponent <SpriteShocker>(); if (!isBoss) { GameManager.main.currEnemy.Add(this); skinID = Random.Range(0, idleSprites.Length); } }