Example #1
0
    private void Start()
    {
        player1 = FindObjectOfType <Player_Moving>();

        if (player1.transform.localScale.x < 0)
        {
            bulletSpeed = -bulletSpeed;

            gameObject.GetComponent <SpriteRenderer>().flipX = true;
        }
    }
Example #2
0
    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();
    }
Example #3
0
 // Use this for initialization
 void Start()
 {
     Player1          = GetComponent <Player_Moving>();
     standing.enabled = true;
     Crouch.enabled   = false;
 }
Example #4
0
 // Use this for initialization
 void Start()
 {
     movement = GetComponent <Player_Moving>();
 }