private void Start() { player1 = FindObjectOfType <Player_Moving>(); if (player1.transform.localScale.x < 0) { bulletSpeed = -bulletSpeed; gameObject.GetComponent <SpriteRenderer>().flipX = true; } }
private void Start() { instance = this; myCols = this.GetComponents <Collider2D>(); LevelManager = FindObjectOfType <GameMaster>(); anim = GetComponent <Animator>(); respawnPoint = transform.position; //PlayerHealth HealthSlider.value = maxHealth; currentHealth = HealthSlider.value; LevelManager = FindObjectOfType <GameMaster>(); count = 0; SetCounter(); }
// Use this for initialization void Start() { Player1 = GetComponent <Player_Moving>(); standing.enabled = true; Crouch.enabled = false; }
// Use this for initialization void Start() { movement = GetComponent <Player_Moving>(); }