コード例 #1
0
 // Use this for initialization
 void Start()
 {
     quantity         = gameObject.GetComponent <game_engine>();
     quality          = gameObject.GetComponent <objectquality> ();
     objectDictionary = gameObject.GetComponent <objectDictionary> ();
     x = 0;
 }
コード例 #2
0
ファイル: compare.cs プロジェクト: jonathaniscarroll/mount.2
 // Use this for initialization
 void Start()
 {
     GameEngine    = gameObject.GetComponent <game_engine> ();
     objDick       = gameObject.GetComponent <objectDictionary> ();
     compareScript = this;
     newPostIDs    = new List <string> ();
 }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     roll        = 0;
     currentItem = poorItem;
     //really drive home that this script is refering to the thing you told it to refer to
     quality = gameObject.GetComponent <game_engine>();
 }
コード例 #4
0
ファイル: addLikes.cs プロジェクト: jonathaniscarroll/mount.2
 void Start()
 {
     GameEngine    = gameObject.GetComponent <game_engine> ();
     objDick       = gameObject.GetComponent <objectDictionary> ();
     compareScript = gameObject.GetComponent <compare> ();
     Instance      = this;
 }
コード例 #5
0
 void Start()
 {
     GameEngine = GameObject.FindGameObjectWithTag("GameController").GetComponent <game_engine>();
     Debug.Log(tokenVal);
     scoreText = GameObject.Find("scoreText");
     Debug.Log(scoreText);
     die   = false;
     speed = 10;
 }
コード例 #6
0
    void Start()
    {
        GameEngine = gameObject.GetComponent <game_engine> ();
        Facebook   = gameObject.GetComponent <fbInit> ();
        newDick    = new Dictionary <string, float> ();

        //Debug.Log("1."+userName + " " + likes);
        //StartCoroutine(GetScores());
    }
コード例 #7
0
ファイル: fbInit.cs プロジェクト: jonathaniscarroll/mount.2
    // 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);
        }
    }
コード例 #8
0
 // Use this for initialization
 void Start()
 {
     GameEngine = gameObject.GetComponent <game_engine>();
     cubiclePos = cubicle.transform.position;
 }