void Start() { maxHealth = enemyHealth; sr = GetComponent <SpriteRenderer>(); handsIsDead = false; moveToStart = false; L6Manager = FindObjectOfType <Level6Manager>(); track = GetComponent <ChariotMiniReset2>(); anim = GetComponent <Animator>(); rb = GetComponent <Rigidbody2D>(); rb.isKinematic = true; spawnBombs = false; hasWaitedForNextBomb = true; spawnSpikedBall = false; chosenAnAttack = false; attackChoice = 0; countBombs = 0; hasJumpedForSpike = false; actuallyJumped = false; waitOnce = false; spikedBallSpawned = false; jumpTimerStart = waitJumpTimer; moveOneCounter = 0; moveTwoCounter = 0; }
void Awake() { // singleton if (Instance == null) { Instance = this; } else if (Instance != this) { Destroy(gameObject); } }
void Start() { maxHealth = enemyHealth; sr = GetComponent <SpriteRenderer>(); torsoIsDead = false; moveToStart = false; L6Manager = FindObjectOfType <Level6Manager>(); track = GetComponent <ChariotMiniReset3>(); EmitLoc = this.gameObject.transform.GetChild(currentCannon); readyToShoot = false; initShotTimer = shotTimer; reloadNumber = shotCounter; }
void Start() { maxHealth = enemyHealth; sr = GetComponent <SpriteRenderer>(); helmetIsDead = false; moveToStart = false; L6Manager = FindObjectOfType <Level6Manager>(); track = GetComponent <ChariotMiniReset4>(); initTimeBetweenShots = timeBetweenShots; eyeSR = transform.GetChild(0).GetComponent <SpriteRenderer>(); initTimeNextAttack = timeUntilNextAttack; countShots = 0; hasShotLasers = false; skyLasersOut = false; }
// Start is called before the first frame update void Start() { L6Manager = FindObjectOfType <Level6Manager>(); goHome = FindObjectOfType <goToLevelSelect>(); moveToStart = false; }