private void MakePhone() { //if (playerinventory.currentMagic > 0) //{ Vector2 temp = new Vector2(animation.GetFloat("Horizontal"), animation.GetFloat("Vertical")); phone Phone = Instantiate(phonePro, transform.position, Quaternion.identity).GetComponent <phone>(); Phone.Setup(temp, ChooseProjectileDirection()); // playerinventory.ReduceMagic(Arrow.magicCost); // reduceMagic.Raise(); //} }