public void Fire(){
IsShot = true;
BasePower += MeterPower;
Instantiate (Player, CannonEnd.transform.position, CannonEnd.transform.rotation);
Player.GetComponent().AddForce (Vector2.right * BasePower);
}
Keep in mind I have variables for base power that are set to 100, and meterpower which is set to any number higher than 1. Which I try to move the object , it won't move.
↧