Exemplo n.º 1
0
    private void Awake()
    {
        mainCamera          = Camera.main;
        touchCamera         = mainCamera.GetComponent <TouchCamera>();
        touchCamera.enabled = false;

        this.grid = FindObjectOfType <YellowBean.Grid>();

        this.animBall = this.goBalloon.GetComponent <Animation>();
    }
Exemplo n.º 2
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        YellowBean.Grid grid = (YellowBean.Grid)target;

        if (GUILayout.Button("Create Grid"))
        {
            grid.CreateGrid();
        }
    }
Exemplo n.º 3
0
 private void Awake()
 {
     grid = GetComponent <YellowBean.Grid>();
 }