예제 #1
0
        public override void Start()
        {
            _level = Image.FromFile("CSA_GAME/Resources/Level/_level.png");
            Transform.Position.X = 0;
            _random = new Random();

            for (var i = 0; i < 5; i++)
            {
                var cactus = new Cactus();
                _cactuses.Add(cactus);
                Children.Add(cactus);
            }

            base.Start();
        }
예제 #2
0
 public static void OnCactusEntersCriticalZone(Cactus cactus)
 {
     CactusEntersCriticalZone?.Invoke(cactus, EventArgs.Empty);
     Console.WriteLine("OnCactusEntersCriticalZone");
 }