Ejemplo 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>();
    }
Ejemplo n.º 2
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

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

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