示例#1
0
    //////////////////////////////////////////////////////////////////

    // Use this for initialization
    public void Start()
    {
        Application.targetFrameRate = 60;

        pm = GetComponent <PaddleMaster>();
        bm = GetComponent <BallMaster>();

        ColorSwatch = this.gameObject.GetComponent <ColorSwatches>();

        pm.PaddleUpgrade(score.getScore());
        bm.InvokeBalls();
    }
示例#2
0
    // Use this for initialization
    void Awake()
    {
        gm              = GameObject.Find("Game Master").GetComponent <GameMaster>();
        bm              = GameObject.Find("Game Master").GetComponent <BallMaster>();
        bounds          = gm.GetComponent <ObjBoundary>();
        cam             = this.GetComponent <Camera>(); //reference to camera
        targetTransform = cam.GetComponent <Transform>();

        //SET CAM TO STD POS&ORTHO
        targetTransform.position = stdPos;
        cam.orthographicSize     = stdOrtho;
        bounds.SetNewBounds();
    }
示例#3
0
    // Use this for initialization
    void Awake()
    {
        bm = GameObject.Find("Game Master").GetComponent <BallMaster>();

        onePaddle   = (GameObject)Resources.Load("1SPaddle", typeof(GameObject));
        twoPaddle   = (GameObject)Resources.Load("2SPaddle", typeof(GameObject));
        threePaddle = (GameObject)Resources.Load("3SPaddle", typeof(GameObject));
        fourPaddle  = (GameObject)Resources.Load("4SPaddle", typeof(GameObject));
        fivePaddle  = (GameObject)Resources.Load("5SPaddle", typeof(GameObject));
        sixPaddle   = (GameObject)Resources.Load("6SPaddle", typeof(GameObject));

        PopUp = (GameObject)Resources.Load("PopUp", typeof(GameObject));
    }
示例#4
0
    void Awake()
    {
        s = this;
//		Invoke ("Test", 1f);
    }