// +rotate kd private float RotateKDItem_id_5(float KDrotate) { KDrotate -= 0.3f; item_id = 0; Debug.Log("Cooldown of rotate decrease to: " + KDrotate + "!"); camScript.SetKD(KDturn); return(KDrotate); }
/// <summary> /// Начальная инициализация /// </summary> private void Start() { allive = true; Damage = 10; hp = Maxhp; money = startmoney; Physics2D.gravity = new Vector2(0, -30f); anim = GetComponent <Animator>(); camScript = camera1.GetComponent <CameraSmooth>(); camScript.SetKD(KDturn); // UIMoneyText = UIMoney.GetComponent<TextMesh> (); }
/// <summary> /// Начальная инициализация /// </summary> private void Start() { allive = true; Damage = 10; hp = Maxhp; money = startmoney; Physics2D.gravity = new Vector2 (0, -30f); anim = GetComponent<Animator>(); camScript=camera1.GetComponent<CameraSmooth>(); camScript.SetKD(KDturn); // UIMoneyText = UIMoney.GetComponent<TextMesh> (); }