internal static void FullAnalysis(Sleigh root) { _rootPath = root.FileName; foreach (var tool in checkers) { root.Accept(tool); } }
private void Read_Click(object sender, RoutedEventArgs e) { var S = new Stopwatch(); S.Start(); _main = new Sleigh(Path.Text); S.Stop(); Logger.Log($"Read {_main.NoOfDomains} domains in {S.Elapsed}"); }
private void OnCollisionEnter2D(Collision2D col) { if (col.gameObject.name.Contains("Present")) { GameObject go = GameObject.Find("santa-sleigh"); Sleigh s = go.GetComponent <Sleigh>(); s.m_nScore++; Vector2 vPresent = col.gameObject.transform.position; //Instantiate(GameObject.Find("PS").GetComponent<Rigidbody2D>(), vPresent, UnityEngine.Quaternion.identity); Destroy(col.gameObject); } }
public abstract void ExitSleigh(Sleigh sleigh);
public abstract bool EnterSleigh(Sleigh sleigh);
public override bool EnterSleigh(Sleigh sleigh) => true;
public override void ExitSleigh(Sleigh sleigh) { }