Exemple #1
0
    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;
    }
Exemple #2
0
 void Start()
 {
     activeRings = GameObject.FindGameObjectWithTag("GameController").GetComponent <ActiveRings>();
     control     = GameObject.FindGameObjectWithTag("Player").GetComponent <Controls>();
     mainCamera  = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <CameraController>();
     generator   = GameObject.FindGameObjectWithTag("Generator").GetComponent <RingGenerator>();
     currentRing = null;
 }
Exemple #3
0
 // Use this for initialization
 void Start()
 {
     setCameraStartComplete(false);
     activeRings        = GameObject.FindGameObjectWithTag("GameController").GetComponent <ActiveRings>();
     transform.position = new Vector3(0, 8, activeRings.getActiveRingSet().transform.position.z - 10);
     control            = GameObject.FindGameObjectWithTag("Player").GetComponent <Controls>();
     setFOV(179);
     StartCoroutine(cameraStartZoom());
     moveSpeed = 0.25f;
 }
Exemple #4
0
 // Use this for initialization
 void Start()
 {
     activeRings = GameObject.FindGameObjectWithTag("GameController").GetComponent <ActiveRings>();
     setNumberOfRings(1);
     maxSegments = 16;
     setRow(0);
     segmentRotation = 22.5f;
     ringSetRadius   = 8;
     rowSeparation   = 8;
     initialise();
 }