Exemplo n.º 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;
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     Debug.Log("Sphere Trigger Script");
     sphereWorldOneObj = GameObject.Find("sphereWorldOne").GetComponent <SphereTrigger>();
     sphereWorldTwoObj = GameObject.Find("sphereWorldTwo").GetComponent <SphereTrigger>();
     //Debug.Log("What is this: " + sphereWorldOneObj);
     //sphereWorldOne = GameObject.Find("sphereWorldOne");
     //Debug.Log("sphereWorldOne: " + sphereWorldOne);
 }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     Debug.Log("Sphere Trigger Script");
     sphereWorldOneObj = GameObject.Find("sphereWorldOne").GetComponent<SphereTrigger>();
     sphereWorldTwoObj = GameObject.Find("sphereWorldTwo").GetComponent<SphereTrigger>();
     //Debug.Log("What is this: " + sphereWorldOneObj);
     //sphereWorldOne = GameObject.Find("sphereWorldOne");
     //Debug.Log("sphereWorldOne: " + sphereWorldOne);
 }
Exemplo n.º 4
0
 protected override void Awake()
 {
     base.Awake();
     st = transform.GetComponentInChildren <SphereTrigger>();
 }