// 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; }
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(); }
public override List2D <int> GetMainList2D() { WatchList2DInScene wl = target as WatchList2DInScene; return(wl.list); }