void Start() { timer = 0; explodeTimer = 4; exploded = false; gameOver = false; moveSpeed = 1f; moveSpeedX = 0.2f; moveSpeedY = 0.04f; rotateSpeed = 2.5f; rotateSparkUsed = 2; jumpSparkUsed = 4; iteration = 0; moving = false; paused = false; holding = false; setStarted(false); activeRings = GameObject.FindGameObjectWithTag("GameController").GetComponent <ActiveRings>(); active = activeRings.activeRingGlow; timed = activeRings.timedRingGlow; trigger = GameObject.FindGameObjectWithTag("Sphere").GetComponent <SphereTrigger>(); sparkCharge = GameObject.FindGameObjectWithTag("Sphere").GetComponent <SparkCharge>(); mainCamera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <CameraController>(); holdMoved = false; rotateMoved = false; justUnpaused = false; touchTimer = 0; touchDelayTimer = 0; availableIteration = 0; }
public void endGame() { SparkCharge sparkCharge = GameObject.FindGameObjectWithTag("Sphere").GetComponent <SparkCharge>(); sparkCharge.endGame(); }