// Start is called before the first frame update void Start() { rb = GetComponent <Rigidbody2D>(); fireBehavior = fireModes.GetComponent <DefaultFire>(); currentHealth = maxHealth; spriteRenderer = GetComponent <SpriteRenderer>(); color = spriteRenderer.color; startB = color.b; startR = color.r; startG = color.g; }
void Start() { fireBehavior = fireMode.GetComponent <EnemyBasicFire>(); currentHealth = maxHealth; impulse = GetComponent <CinemachineImpulseSource>(); }