Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        Application.targetFrameRate = -1;
        cubeia = new CubeiaClient();
        cubeia.gameController = this;
        Material newMat = Resources.Load("VectrosityDemos/Materials/VectorLineGlow", typeof(Material)) as Material;

        shootLine   = new VectorLine("ShootLine", new Vector2[2], Color.white, newMat, 8.0f, LineType.Continuous);
        reflectLine = new VectorLine("ReflectLine", new Vector2[2], Color.white, newMat, 4.0f, LineType.Continuous);
        ballLine    = new VectorLine("BallLine", new Vector2[2], Color.white, newMat, 8.0f, LineType.Continuous);
        cue         = GameObject.Find("Cue");
        cueHead     = GameObject.Find("Head");
        cueLength   = cue.renderer.bounds.size.y;
        cue.transform.Rotate(0, 0, -90);

        ArrangeBalls();

        GOS = GameObject.FindGameObjectsWithTag("Ball");
        foreach (GameObject GO in GOS)
        {
            GOSDict.Add(GO.name, new Ball());
        }
        Debug.Log(GOS.Length);
        Invoke("PlaceCueAtStart", 0.1f);
        cubeia.TestLogin();
    }
Exemplo n.º 2
0
 public void login()
 {
     cubeia.TestLogin();
 }