Beispiel #1
0
        private Actor CreateBomb()
        {
            Bomb       bomb = new Bomb(m_CollisionDetection);
            GameObject go   = new GameObject("Bomb");

            go.transform.localScale *= VIEW_SCALE_FACTOR;
            BombView view = go.AddComponent <BombView>();

            view.Init(bomb);
            return(bomb);
        }
Beispiel #2
0
 public Bomb(BombData data, BombView view)
 {
     Data = data;
     View = view;
 }
Beispiel #3
0
 public SpawnBombSignal(BombView view, BombData data, Vector3 position)
 {
     View     = view;
     Data     = data;
     Position = position;
 }