Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            SetupCloseHotKey();
            Sprite catSprite = new Sprite(SpriteSheetImageBrush);

            catActions = new CatActions(PlaceHolderCat, CatArea, 5, catSprite);

            CatBehaviour catBehaviour = new CatBehaviour(catActions);

            catBehaviour.startCatBehaviourChaseMouseWhenNear();
        }
Exemplo n.º 2
0
 public CatBehaviour(CatActions catActions)
 {
     this.catActions = catActions;
     SetupTimers();
 }