Exemple #1
0
    // Use this for initialization
    void Awake()
    {
        happyCheck     = GameObject.Find("Algorithm").GetComponentInChildren <HappyCheck>();
        happyCheckStep = GameObject.Find("Algorithm").GetComponentInChildren <HappyCheckStep>();
        GameObject debugWithMap = new GameObject("Map");

        debugWithMap.transform.parent = transform;
        watchList = debugWithMap.AddComponent(typeof(WatchList2DInScene)) as WatchList2DInScene;
        happyCheckStep.clickAction += changeMineDataForHappy;
    }
Exemple #2
0
    void Start()
    {
        var        md           = GameObject.Find("MainData");
        var        gamePart     = md.GetComponent <GamePart>();
        GameObject debugWithMap = new GameObject("Map");

        //gamePart.clickAction += ProcessAfterClick;
        //gamePart.flipAction += ProcessAfterFlip;
        debugWithMap.transform.parent = transform;
        watchList = debugWithMap.AddComponent(typeof(WatchList2DInScene)) as WatchList2DInScene;
        StepInit();
        CheckHappy();
    }
Exemple #3
0
    public override List2D <int> GetMainList2D()
    {
        WatchList2DInScene wl = target as WatchList2DInScene;

        return(wl.list);
    }