Пример #1
0
        public override MapObject getBomb(Player player)
        {
            BombIcon bombIcon = new BombIcon();
            BombFire bombFire = new BombFire();
            RedBomb  bomb     = new RedBomb(player);

            bombIcon.SetComponent(bomb);
            bombFire.SetComponent(bombIcon);
            bombFire.Operation();
            return(bomb);
        }
Пример #2
0
 void Start()
 {
     m_BombFire = GetComponent <BombFire> ();
     m_Movement = GetComponent <PlayerMovement> ();
     m_Pause    = GetComponent <PauseMenu> ();
 }
	void Start()
	{
		m_BombFire = GetComponent<BombFire> ();
		m_Movement = GetComponent<PlayerMovement> ();
		m_Pause = GetComponent<PauseMenu> ();
	}