示例#1
0
    void Start()
    {
        // if not a local player but still exists in the game instance (and not the server)
        // we want to return and not retrieve the record.
        if (!isLocalPlayer && !isServer)
        {
            return;
        }

        recordContainer  = GameObject.FindObjectOfType <RecordContainer> ();
        profileContainer = gameObject.GetComponent <PlayerProfileContainer> ();
    }
示例#2
0
    // Use this for initialization

    void Start()
    {
        if (isLocalPlayer)
        {
            GameObject.FindObjectOfType <StashButtonController> ().player = this.gameObject;
        }

        justDropped      = null;
        timer            = GameObject.FindObjectOfType <UpdateTime> ();
        spriteRenderer   = gameObject.GetComponent <SpriteRenderer> ();
        profileContainer = gameObject.GetComponent <PlayerProfileContainer> ();
        playerScore      = gameObject.GetComponent <PlayerScore> ();
    }