Exemple #1
0
 public InGamePage()
 {
     EnableMultiTouch();              //IMPORTANT!!
     character       = new BCharacter();
     character.scale = 0.25f;
     AddChild(character);
     ListenForUpdate(HandleUpdate);
 }
Exemple #2
0
 public InGamePage()
 {
     EnableMultiTouch (); //IMPORTANT!!
     character = new BCharacter ();
     character.scale = 0.25f;
     AddChild (character);
     ListenForUpdate (HandleUpdate);
 }
Exemple #3
0
 public void shoot()
 {
     Debug.Log ("Shooting!");
     BCharacter _bullet = new BCharacter();
     AddChild (_bullet);
     _bullet.scale = 0.025f;
     _bullet.x = character.x;
     _bullet.y = character.y;
 }
Exemple #4
0
        public void shoot()
        {
            Debug.Log("Shooting!");
            BCharacter _bullet = new BCharacter();

            AddChild(_bullet);
            _bullet.scale = 0.025f;
            _bullet.x     = character.x;
            _bullet.y     = character.y;
        }