Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (isTouched())
     {
         FaceBookManager.Invite("Play Flappy BunBun with me!", "Check out this new game, it's cute cuddly, and has a Bunny!");
     }
 }
Ejemplo n.º 2
0
 void Awake()
 {
     if (FindObjectsOfType(typeof(AdsControl)).Length > 1)
     {
         Destroy(gameObject);
         return;
     }
     _instance = this;
     DontDestroyOnLoad(gameObject);
 }
Ejemplo n.º 3
0
 // Update is called once per frame
 void Update()
 {
     if (isTouched())
     {
         FaceBookManager.Share("Check out my Floppy BunBun Awesomeness!",
                               "I have a high score of " + (PlayerPrefs.GetInt("high_score", 0)).ToString() + " points. Bet you can't beat me!",
                               "Floppy BunBun - How far can you flap those ears?",
                               "https://lh3.ggpht.com/Y5OIYKyPVD_qckNURsIaLc38dt5_gJaMWUYgitBENlx1QtD2v9fg3KV_ZXc8BIViyevq=w300-rw",
                               "https://play.google.com/store/apps/details?id=com.digitalalien.floppybunbun");
     }
 }
Ejemplo n.º 4
0
 void Awake()
 {
     useGUILayout = false;
     if (Application.platform == RuntimePlatform.IPhonePlayer)
     {
         Application.targetFrameRate = 60;
     }
     AudioListener.volume = PlayerPrefs.GetInt("volume", 50);
     FaceBookManager.Initialize();
     //Gameservice init here
     if (PlayerPrefs.GetInt("use_game_services", 0) < 0 ? true : false)
     {
         SocialManager.Authenticate();
     }
 }
Ejemplo n.º 5
0
    // Use this for initialization
    // Awake function from Unity's MonoBehavior
    void Awake()
    {
        _instance = this;
        DontDestroyOnLoad(gameObject);

        if (!FB.IsInitialized)
        {
            // Initialize the Facebook SDK
            FB.Init(OnInitComplete);
        }
        else
        {
            // Already initialized, signal an app activation App Event
            FB.ActivateApp();
        }
    }
Ejemplo n.º 6
0
 void Awake()
 {
     DontDestroyOnLoad(this.gameObject);
     _instance  = this;
     IsloggedIn = true;
 }