Exemple #1
0
    // private CharacterSelection PlayersChoice;

    // Use this for initialization
    void Start()
    {
        chara               = GameObject.FindGameObjectWithTag("Player");
        cam                 = Camera.main.transform;
        lastPos             = transform.position;
        SlopeScr            = chara.GetComponent <SlopesScript>();
        anim                = GetComponent <Animator>();
        inventory.ItemUsed += Inventory_ItemUsed;
        PlayerStats         = chara.GetComponent <StatsScript>();
    }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     chara    = GameObject.FindGameObjectWithTag("Player");
     SlopeScr = chara.GetComponent <SlopesScript>();
 }