// 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; }
// 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; }
// 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);*/ }
// Update is called once per frame void Update() { pc = player.GetComponent<PlayerClimb>(); if (pc.flauta) { this.gameObject.SetActive(false); } }
// 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; }
// Update is called once per frame void Update() { pc = player.GetComponent <PlayerClimb>(); if (pc.flauta) { this.gameObject.SetActive(false); } }
// Use this for initialization void Start() { animatorMove = this.GetComponent<Animator>(); canMove = true; isMove = false; speed_x = 4.3597135345f; pc = player.GetComponent<PlayerClimb> (); }
// Use this for initialization void Start() { animatorMove = this.GetComponent <Animator>(); canMove = true; isMove = false; speed_x = 4.3597135345f; pc = player.GetComponent <PlayerClimb> (); }
// 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; }
// 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);*/ }
// 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); } } }
// Use this for initialization void Start() { pc = this.gameObject.GetComponent <PlayerClimb>(); }
// Use this for initialization void Start() { pm = playerLoc.GetComponent<Player_Mov>(); pc = playerLoc.GetComponent<PlayerClimb>(); pc.Move = false; }
// Use this for initialization void Start() { pc = this.gameObject.GetComponent<PlayerClimb>(); }
// Use this for initialization void Start() { desatColi = false; pc = GameObject.Find("player").GetComponent <PlayerClimb> (); sB = this.gameObject.GetComponent("ShowButton") as ShowButton; }
// Use this for initialization void Start() { desatColi = false; pc = GameObject.Find ("player").GetComponent<PlayerClimb> (); sB = this.gameObject.GetComponent ("ShowButton") as ShowButton; }
// Use this for initialization void Start() { pm = playerLoc.GetComponent <Player_Mov>(); pc = playerLoc.GetComponent <PlayerClimb>(); pc.Move = false; }