/// <summary> /// Start is called on the frame when a script is enabled just before /// any of the Update methods is called the first time. /// </summary> void Start() { precalculate = GetComponent <Precalculate>(); Singleton.GamePart.clickAction += AfterClick; }
// Use this for initialization void Start() { spriteRenderer = GetComponent <SpriteRenderer>(); precalculate = GameObject.Find("Algorithm2").GetComponent <Precalculate>(); precalculate.afterPrecacAction += RefreshView; }