예제 #1
0
        private void BootstrapComponents(string connectionString)
        {
            var mainComp      = new MainComponentController();
            var singleArtComp = new SingleArticleComponentController();
            var catListComp   = new CategoryListComponentController();

            mainComp.Bootstrap(connectionString);
            singleArtComp.Bootstrap(connectionString);
            catListComp.Bootstrap(connectionString);
        }
예제 #2
0
    // Use this for initialization
    void Awake()
    {
        MCC = GameObject.Find ("MainComponentController").GetComponent<MainComponentController>();

        for (int i = 0; i < levels.Length; i++) {
            GameObject go = Instantiate(levelButtonPrefab, new Vector3(levels[i].levelIconLocation.x, levels[i].levelIconLocation.y, 0f), Quaternion.Euler(new Vector3(180f, 0f, 0f))) as GameObject;
            levelButtonController script = go.GetComponent<levelButtonController>();
            script.buttonIndex = i;
            script.worldController = this;
            go.transform.SetParent (this.transform);
            levels[i].levelButton = go;
        }
    }
예제 #3
0
    void Awake()
    {
        kamiList = new List<GameObject>();

        treeCollider = GetComponent<CircleCollider2D>();
        mainCC = GameObject.Find("MainComponentController").GetComponent<MainComponentController>();

        treeCircle = Instantiate (treeCirclePrefab, new Vector3 (transform.position.x, transform.position.y, 0f), Quaternion.Euler(new Vector3(180f, 0f, 0f))) as GameObject;
        circleRenderer = treeCircle.GetComponent<MeshRenderer> ();

        this.transform.Rotate (new Vector3(0f, Random.Range (-5f, 5f), Random.Range (0f, 360f)));
    }
예제 #4
0
 void Awake()
 {
     spaceOrigin = GetComponent<CircleCollider2D>();
     mainCC = GameObject.Find("MainComponentController").GetComponent<MainComponentController>();
 }
예제 #5
0
 void Awake()
 {
     MCC = GameObject.Find ("MainComponentController").GetComponent<MainComponentController> ();
 }