コード例 #1
0
    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);
    }
コード例 #2
0
    private void Start()
    {
        AttackActiv = true;
        player      = GameObject.FindObjectOfType <Playar>()?.gameObject;

        SaveParametrs data = new SaveParametrs(HitPoint, MoveSpeed, AttackDamag, AttackSpeed);

        SaveEndLoad.CheckParametrs(ref data, "SimplEnemy");

        float temp = 0;

        data.SetParameters(ref HitPoint, ref MoveSpeed, ref AttackDamag, ref AttackSpeed, ref temp);
    }
コード例 #3
0
    private void Start()
    {
        MapCollider = GameObject.FindGameObjectWithTag("Map")?.GetComponent <Collider2D>();
        player      = GameObject.FindObjectOfType <Playar>()?.gameObject;

        AttackActiv = true;

        GetNextposition();

        SaveParametrs data = new SaveParametrs(HitPoint, MovSpeed, AttackDamag, AttackSpeed, BulledMovSpeed);

        SaveEndLoad.CheckParametrs(ref data, "FlyEnemy");

        data.SetParameters(ref HitPoint, ref MovSpeed, ref AttackDamag, ref AttackSpeed, ref BulledMovSpeed);
    }
コード例 #4
0
    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>());
    }