Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        GameObject Party = GameObject.FindWithTag("Overworld Party");

        pProp = Party.GetComponent <PartyProperties>();
        UpdatePartyStats();
    }
Beispiel #2
0
    // Use this for initialization

    private void Awake()
    {
        rb2d       = GetComponent <Rigidbody2D>();
        playerSize = GetComponent <BoxCollider2D>().size;
        boxSize    = new Vector2(playerSize.x, groundedSkin);
        myAnimator = GetComponent <Animator>();
        partyStats = GetComponentInParent <PartyProperties>();
        moveSpeed  = partyStats.partyMoveSpeed;
    }