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