Beispiel #1
0
 private void ManipulationWithEnemy(CometView enemy, Health health)
 {
     enemy.SetHealth(health);
     enemy.KillPoint = _dataEnemies.CometKillPoint;
     health.OnDeath += enemy.Death;
     _listenerShowMessageDeathEnemy.Add(enemy);
     new EnemiesSpawn(_dataPlayer).RandomSpawnLocation(enemy);
 }
        public CUITableViewCell(UITableViewCellStyle style, string reuseIdentifier) : base(style, reuseIdentifier)
        {
            ContentView.Tag = _instanceCount++;

            cometView = new CometView(ContentView.Bounds);
            cometView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight;

            ContentView.AutosizesSubviews = true;
            ContentView.AddSubview(cometView);
        }