private void Start() { Paus = FindObjectOfType <PausBar>(); MovControler = FindObjectOfType <JoystickControler>(); AttackActiv = true; SaveParametrs data = new SaveParametrs(HitPoint, MovSpeed, AttackDamag, AttackSpeed, BulledSpeed); SaveEndLoad.CheckParametrs(ref data, "Player"); data.SetParameters(ref HitPoint, ref MovSpeed, ref AttackDamag, ref AttackSpeed, ref BulledSpeed); }
private void Start() { WinBar = FindObjectOfType <PausBar>(); tempTimeStateActivity = TimeStateActivity; attackNomber = 0; touchAttack = true; buledAttack = true; player = FindObjectOfType <Playar>().gameObject; SaveParametrs data = new SaveParametrs(HitPoint, MovSpeed, AttackDamag, AttackSpeed, BulledMovSpeed); SaveEndLoad.CheckParametrs(ref data, "Boss"); data.SetParameters(ref HitPoint, ref MovSpeed, ref AttackDamag, ref AttackSpeed, ref BulledMovSpeed); ChengState(); Physics2D.IgnoreCollision(GetComponent <Collider2D>(), player.GetComponent <Collider2D>()); }