Ejemplo n.º 1
0
    void Start()
    {
        supportPrefab = (GameObject)Resources.Load("Prefabs/Suport/Support", typeof(GameObject));
        offset        = Time.deltaTime * speedMove;
        planeDie      = GetComponent <PlaneDie>();
        rigidbody2D   = GetComponent <Rigidbody2D>();
        if (isBoss)
        {
            _bossController = GetComponent <BossController>();
        }
        _gameManager = GameSetting._gameManager;

        saveScale = transform.localScale;

        if (isBoss)
        {
            typePath = TypePath.none;
            _UseStop = true;
        }

        if (typePath == TypePath.none && !_UseStop)
        {
            Move_stop(transform.up.normalized * -offset * 10);
        }

        if (_UseStop)
        {
            typePath = TypePath.none;
            Move_stop(transform.up.normalized * -offset * 10);
        }
    }
Ejemplo n.º 2
0
    void Start()
    {
        offset      = Time.deltaTime * speedMove;
        planeDie    = GetComponent <PlaneDie>();
        rigidbody2D = GetComponent <Rigidbody2D>();
        if (isBoss)
        {
            _bossController = GetComponent <BossController>();
        }
        _gameManager = GameSetting._gameManager;

        saveScale = transform.localScale;

        if (isBoss)
        {
            typePath = TypePath.none;
            _UseStop = true;
        }

        if (typePath == TypePath.none && !_UseStop)
        {
            Move_stop(transform.up.normalized * -offset * 10);
        }

        if (_UseStop)
        {
            typePath = TypePath.none;
            Move_stop(transform.up.normalized * -offset * 10);
        }
    }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        HPmax = GameSetting.armor_plane;
        preHP = HPmax;

        speedMove = GameSetting.speed_plane;

        _gameManager  = GameSetting._gameManager;
        planeDie      = GetComponent <PlaneDie> ();
        canController = true;
    }