Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        hasWeapon  = false;
        isPick     = false;
        currWeapon = 0;
        currShield = 0;

        posOffsetBack             = new Vector3(0, 0, -0.1f);
        rotOffsetBack.eulerAngles = new Vector3(0, 0, 180f);

        posOffsetBack_Shield             = new Vector3(0, -0.2f, -0.2f);
        rotOffsetBack_Shield.eulerAngles = new Vector3(0, 180f, 0);

        posOffsetRight             = new Vector3(0, 0f, 0);
        rotOffsetRight.eulerAngles = new Vector3(0, 0, 0);

        posOffsetLeft             = new Vector3(0, 0f, 0);
        rotOffsetLeft.eulerAngles = new Vector3(0, 0, 0);

        owm    = GetComponent <OpenWorldMovement>();
        anim   = owm.anim;
        player = GetComponent <Player>();

        maxHP = 60;
        HP    = maxHP;

        //CreateWeapon();
    }
 // Use this for initialization
 void Start()
 {
     movement         = InventorySystem.instance.player.GetComponent <OpenWorldMovement>();
     staminaImage     = GetComponent <Image>();
     staminaImageBack = GetComponentInParent <RawImage>();
     color            = staminaImage.color;
     backColor        = staminaImageBack.color;
     maxStamina       = movement.stamina;
 }
Esempio n. 3
0
    // Use this for initialization
    void Start()
    {
        openWorldMovement = this.GetComponent <OpenWorldMovement>();

        freeClimb = GetComponent <SA.FreeClimb>();
    }
Esempio n. 4
0
 // Use this for initialization
 void Start()
 {
     owm = GetComponent <OpenWorldMovement>();
     sc  = GetComponent <SlopeController>();
     Init();
 }