void Start() { player = GameObject.Find("Player").GetComponent <Character_Movement>(); rb = GetComponent <Rigidbody2D>(); render = GetComponent <Renderer>(); location = this.transform.localScale.x; }
void Start() { //find player, sound manager, and score board player = FindObjectOfType <Player_Movement>(); sounds = GameObject.Find("SoundManager").GetComponent <SoundManager>(); score = GameObject.Find("Score").GetComponent <UIManager>(); }
// Start is called before the first frame update void Start() { knifeText = GetComponent <Text>(); counter = charmov.KnifeQty; player = GameManager.instance.Player; charmov = player.GetComponent <Character_Movement>(); }
//method called when enabled void OnEnable() { //find player player = GameObject.Find("Player").GetComponent <Character_Movement>(); //disable multiJump script GameObject.Find("Player").GetComponent <multiJump>().enabled = false; }
// Use this for initialization void Start() { //myRigidBody = GetComponent<Rigidbody2D>(); player = FindObjectOfType <Character_Movement>(); if (player.transform.localScale.x < 0) { speed = -speed; } }
private void Start() { //Cache _myCharacterMovement = FindObjectOfType <Character_Movement>(); _myStageManager = FindObjectOfType <Stage_Manager>(); InstantiateTheChracterMesh(); InstantiateTheFirstStackOfCharacter(); _CanInteract = true; }
// Use this for initialization void Start() { anim = GetComponent <Animator>(); currentHealth = startingHealth; characterMovement = GetComponent <Character_Movement>(); audio = GetComponent <AudioSource>(); lman = FindObjectOfType <LevelManager>(); lifeSystem = FindObjectOfType <LifeManager>(); isDead = false; }
// Start is called before the first frame update void Start() { player = GameManager.instance.Player; playerHealth = player.GetComponent <PlayerHealth>(); currentCheckpoint = GameManager.instance.gameObject; playerSlider = player.GetComponent <PlayerHealth>(); characterMovement = player.GetComponent <Character_Movement>(); anim = player.GetComponent <Animator>(); lifeSystem = FindObjectOfType <LifeManager>(); }
void Start() { rb = GetComponent <Rigidbody>(); cam = GetComponent <OrthoSmoothFollow>(); character = GetComponent <Character_Movement>(); }
// Start is called before the first frame update void Start() { player = GameManager.instance.Player; cham = player.GetComponent <Character_Movement>(); }
void Start() { playerMvmnt = FindObjectOfType <Player_Movement>(); characterMvmnt = FindObjectOfType <Player_Movement>(); easyButton = FindObjectOfType <PauseMenu>(); }
// Use this for initialization void Start() { //initialize all the things movement = new Character_Movement(); ledge_movement = new Character_Movement_Ledge(); block_movement = new Character_Block_Move(); moving = false; hanging = false; timeD=new TimeDirection(0f,Vector3.back); //initializess the timeD varible, see bottom for structure rotation = new Vector3(0,180,0); //makes character face forward transform.eulerAngles = rotation; timetoMove = 0.15f; }
private void Awake() { charMoveScript = GetComponent <Character_Movement>(); run = charMoveScript.runnning; charAnimations = transform.Find("The Adventurer Blake").GetComponent <Animator>(); }
private void Start() { _myCharacterMovement = GetComponent <Character_Movement>(); _myStageManager = FindObjectOfType <Stage_Manager>(); }
// Use this for initialization void Start() { Player = FindObjectOfType <Character_Movement>(); isFollowing = true; }
void Start() { player = GameObject.Find("Player").GetComponent <Character_Movement>(); }
private void Awake() { movement = FindObjectOfType <Character_Movement>(); m_playerStats = FindObjectOfType <PlayerStats>(); }
private void Start() { jumpLimit = jumpValue; GetComponent <Rigidbody2D>(); movement = GetComponent <Character_Movement>(); }