Exemplo n.º 1
0
        // Update is called once per frame
        void Update()
        {
            if (!init)
            {
                playerAttack = cop.GetComponent <PlayerAttack>();
            }
            if (playerAttack != null)
            {
                init = true;
            }

            transform.position = new Vector3(playerAttack.GetAttackPoint(0.4f).x, playerAttack.GetAttackPoint(0.4f).y, 0);

            FlipSpriteDependingOnAxis(weaponSpriteRenderer);
        }
Exemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     //transform.position = playerAttack.GetAttackPoint();
     transform.position = new Vector3(playerAttack.GetAttackPoint(0.4f).x, playerAttack.GetAttackPoint(0.4f).y, 0);
 }