void Start() { health = 100; sound = Sound.Instance; canMove = true; block = BlockButton.Instance; player = Player.Instance; switcher = PlayerModelSwitcher.Instance; joystick = VirtualJoystick.Instance; }
void Start() { health = 100; sound = Sound.Instance; canMove = true; block = BlockButton.Instance; player = Player.Instance; switcher = PlayerModelSwitcher.Instance; joystick = VirtualJoystick.Instance; calculatedDamage = (int)(900.0f / ((float)player.Armor)); calculatedLifesteal = ((int)(player.Damage * (player.Lifesteal) * .3)); Debug.Log(calculatedLifesteal); }
void Awake() { Instance = this; }