Exemple #1
0
 /// <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;
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     spriteRenderer = GetComponent <SpriteRenderer>();
     precalculate   = GameObject.Find("Algorithm2").GetComponent <Precalculate>();
     precalculate.afterPrecacAction += RefreshView;
 }