Exemple #1
0
 // Start is called before the first frame update
 void Awake()
 {
     m_PlayerReferences = GetComponent <PlayerReferences>();
     m_PlayerInput      = m_PlayerReferences.playerInput;
     m_PlayerClimb      = m_PlayerReferences.playerClimb;
     m_Rigidbody        = m_PlayerReferences.rigRigidbody;
 }
Exemple #2
0
    // Start is called before the first frame update
    void Start()
    {
        player = FindObjectOfType <PlayerInput>();
        climb  = GetComponent <PlayerClimb>();
        health = GetComponent <HealthManager>();

        usedInvis = false;
    }
    private void Awake()
    {
        PlayerReferences PlayerRefs = gameObject.GetComponentInParent <PlayerReferences>();

        m_PlayerClimb  = PlayerRefs.playerClimb;
        m_PlayerWalk   = PlayerRefs.playerWalk;
        m_RigRigidbody = PlayerRefs.rigRigidbody;
    }
Exemple #4
0
    // Use this for initialization
    void Start()
    {
        componentActivator = this.gameObject.GetComponent("TriggerFind") as TriggerFind;

        pc = GameObject.Find ("player").GetComponent<PlayerClimb> ();
        wa = GameObject.Find ("avisoCobra").GetComponent<warningActivit> ();
        /*if(flipImage)
            button.transform.Rotate (Vector3.right);*/
    }
Exemple #5
0
    // Update is called once per frame
    void Update()
    {
        pc = player.GetComponent<PlayerClimb>();

        if (pc.flauta)
        {
            this.gameObject.SetActive(false);
        }
    }
Exemple #6
0
 // Use this for initialization
 void Start()
 {
     pc = player.GetComponent<PlayerClimb>();
     gatilhoSaida = GameObject.FindGameObjectWithTag("gatilhoSaida");
     gatilho9 = GameObject.FindGameObjectWithTag("gatilho9");
     gatilho8 = GameObject.FindGameObjectWithTag("gatilho8");
     gatilhoFinal = GameObject.FindGameObjectWithTag("gatilhoFinal");
     win = false;
 }
Exemple #7
0
    // Update is called once per frame
    void Update()
    {
        pc = player.GetComponent <PlayerClimb>();

        if (pc.flauta)
        {
            this.gameObject.SetActive(false);
        }
    }
Exemple #8
0
    // Use this for initialization
    void Start()
    {
        animatorMove = this.GetComponent<Animator>();
        canMove = true;
        isMove = false;
        speed_x = 4.3597135345f;

        pc = player.GetComponent<PlayerClimb> ();
    }
Exemple #9
0
    // Use this for initialization
    void Start()
    {
        animatorMove = this.GetComponent <Animator>();
        canMove      = true;
        isMove       = false;
        speed_x      = 4.3597135345f;

        pc = player.GetComponent <PlayerClimb> ();
    }
Exemple #10
0
 // Use this for initialization
 void Start()
 {
     pc           = player.GetComponent <PlayerClimb>();
     gatilhoSaida = GameObject.FindGameObjectWithTag("gatilhoSaida");
     gatilho9     = GameObject.FindGameObjectWithTag("gatilho9");
     gatilho8     = GameObject.FindGameObjectWithTag("gatilho8");
     gatilhoFinal = GameObject.FindGameObjectWithTag("gatilhoFinal");
     win          = false;
 }
Exemple #11
0
    // Use this for initialization
    void Start()
    {
        componentActivator = this.gameObject.GetComponent("TriggerFind") as TriggerFind;

        pc = GameObject.Find("player").GetComponent <PlayerClimb> ();
        wa = GameObject.Find("avisoCobra").GetComponent <warningActivit> ();

        /*if(flipImage)
         *      button.transform.Rotate (Vector3.right);*/
    }
Exemple #12
0
    // Start is called before the first frame update
    void Start()
    {
        move       = GetComponent <PlayerMove>();
        jump       = GetComponent <PlayerJump>();
        climb      = GetComponent <PlayerClimb>();
        playerMask = GetComponent <Masks>();

        maskController = FindObjectOfType <MaskController>();
        speech         = FindObjectOfType <SpeechScript>();
        anim           = GetComponent <Animator>();


        hasJumped     = false;
        hasWallJumped = false;
        isClimbing    = false;
        isZipping     = false;

        GetComponent <DistanceJoint2D>().enabled = false;
        maskInventory = new List <string>();

        maskCounter = 0;

        knockbackCount = knockbackLength;
    }
    private void Start()
    {
        moveScript     = GetComponent <PlayerMove>();
        activateScript = GetComponent <ActivateLever>();
        climbScript    = GetComponent <PlayerClimb>();

        renderer = GetComponent <SpriteRenderer>();

        moveScript.enabled     = false;
        activateScript.enabled = false;

        heldObjects = new List <Transform>();


        List <Transform> allChildren = new List <Transform>(GetComponentsInChildren <Transform>());

        foreach (Transform trans in allChildren)
        {
            if (trans.CompareTag("Leg") || trans.CompareTag("Hand"))
            {
                heldObjects.Add(trans);
            }
        }
    }
Exemple #14
0
 // Use this for initialization
 void Start()
 {
     pc = this.gameObject.GetComponent <PlayerClimb>();
 }
Exemple #15
0
 // Use this for initialization
 void Start()
 {
     pm = playerLoc.GetComponent<Player_Mov>();
     pc = playerLoc.GetComponent<PlayerClimb>();
     pc.Move = false;
 }
Exemple #16
0
 // Use this for initialization
 void Start()
 {
     pc = this.gameObject.GetComponent<PlayerClimb>();
 }
Exemple #17
0
 // Use this for initialization
 void Start()
 {
     desatColi = false;
     pc        = GameObject.Find("player").GetComponent <PlayerClimb> ();
     sB        = this.gameObject.GetComponent("ShowButton") as ShowButton;
 }
Exemple #18
0
 // Use this for initialization
 void Start()
 {
     desatColi = false;
     pc = GameObject.Find ("player").GetComponent<PlayerClimb> ();
     sB = this.gameObject.GetComponent ("ShowButton") as ShowButton;
 }
Exemple #19
0
 // Use this for initialization
 void Start()
 {
     pm      = playerLoc.GetComponent <Player_Mov>();
     pc      = playerLoc.GetComponent <PlayerClimb>();
     pc.Move = false;
 }