Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     quantity         = gameObject.GetComponent <game_engine>();
     quality          = gameObject.GetComponent <objectquality> ();
     objectDictionary = gameObject.GetComponent <objectDictionary> ();
     x = 0;
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     objDict      = GameObject.FindGameObjectWithTag("GameController").GetComponent <objectDictionary>();
     cubObjs      = objDict.cubicleObjects;
     wareHouseObj = gameObject;
     stockWarehouse(5);
 }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     GameEngine    = gameObject.GetComponent <game_engine> ();
     objDick       = gameObject.GetComponent <objectDictionary> ();
     compareScript = this;
     newPostIDs    = new List <string> ();
 }
Exemplo n.º 4
0
 void Start()
 {
     GameEngine    = gameObject.GetComponent <game_engine> ();
     objDick       = gameObject.GetComponent <objectDictionary> ();
     compareScript = gameObject.GetComponent <compare> ();
     Instance      = this;
 }
Exemplo n.º 5
0
    void Start()
    {
        ObjectGeneration = gameObject.GetComponent <objectDictionary> ();

        timer = 0;
        likes = 0;
        posts = 0;
        setText(likes);
        ObjectGeneration.populateCubicles(likes);
    }
Exemplo n.º 6
0
    // Awake function from Unity's MonoBehavior
    void Awake()
    {
        start            = false;
        newPost          = true;
        GameEngine       = gameObject.GetComponent <game_engine>();
        ObjectGeneration = gameObject.GetComponent <objectDictionary> ();
        phpCommunication = gameObject.GetComponent <phpComm> ();

        facebookDict = new Dictionary <string, float> ();
        likePerPost  = new Dictionary <string, float> ();
        postMessages = new Dictionary <string, string> ();

        perm = new List <string> ()
        {
            "public_profile", "email", "user_friends", "user_posts"
        };

        if (!FB.IsInitialized)
        {
            // Initialize the Facebook SDK
            FB.Init(internLogin);
        }
    }