예제 #1
0
 void Start()
 {
     player   = GameObject.Find("Player").GetComponent <Character_Movement>();
     rb       = GetComponent <Rigidbody2D>();
     render   = GetComponent <Renderer>();
     location = this.transform.localScale.x;
 }
예제 #2
0
 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>();
 }
예제 #3
0
 // 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>();
 }
예제 #4
0
 //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;
 }
예제 #5
0
 // Use this for initialization
 void Start()
 {
     //myRigidBody = GetComponent<Rigidbody2D>();
     player = FindObjectOfType <Character_Movement>();
     if (player.transform.localScale.x < 0)
     {
         speed = -speed;
     }
 }
예제 #6
0
    private void Start()
    {
        //Cache
        _myCharacterMovement = FindObjectOfType <Character_Movement>();
        _myStageManager      = FindObjectOfType <Stage_Manager>();

        InstantiateTheChracterMesh();
        InstantiateTheFirstStackOfCharacter();
        _CanInteract = true;
    }
예제 #7
0
 // 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;
 }
예제 #8
0
 // 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>();
 }
예제 #9
0
 void Start()
 {
     rb        = GetComponent <Rigidbody>();
     cam       = GetComponent <OrthoSmoothFollow>();
     character = GetComponent <Character_Movement>();
 }
예제 #10
0
 // Start is called before the first frame update
 void Start()
 {
     player = GameManager.instance.Player;
     cham   = player.GetComponent <Character_Movement>();
 }
예제 #11
0
 void Start()
 {
     playerMvmnt    = FindObjectOfType <Player_Movement>();
     characterMvmnt = FindObjectOfType <Player_Movement>();
     easyButton     = FindObjectOfType <PauseMenu>();
 }
예제 #12
0
 // 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>();
 }
예제 #15
0
    // Use this for initialization
    void Start()
    {
        Player = FindObjectOfType <Character_Movement>();

        isFollowing = true;
    }
예제 #16
0
 void Start()
 {
     player = GameObject.Find("Player").GetComponent <Character_Movement>();
 }
예제 #17
0
 private void Awake()
 {
     movement      = FindObjectOfType <Character_Movement>();
     m_playerStats = FindObjectOfType <PlayerStats>();
 }
예제 #18
0
 private void Start()
 {
     jumpLimit = jumpValue;
     GetComponent <Rigidbody2D>();
     movement = GetComponent <Character_Movement>();
 }