Beispiel #1
0
 internal static void FullAnalysis(Sleigh root)
 {
     _rootPath = root.FileName;
     foreach (var tool in checkers)
     {
         root.Accept(tool);
     }
 }
Beispiel #2
0
        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}");
        }
Beispiel #3
0
    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);
        }
    }
Beispiel #4
0
 public abstract void ExitSleigh(Sleigh sleigh);
Beispiel #5
0
 public abstract bool EnterSleigh(Sleigh sleigh);
Beispiel #6
0
 public override bool EnterSleigh(Sleigh sleigh)
 => true;
Beispiel #7
0
 public override void ExitSleigh(Sleigh sleigh)
 {
 }