Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        ecZ = GetComponent<Enemy_ControllerZ>();
        MS = GetComponent<MoveSmooth>();
        at_para = Bullet.GetComponent<Attack_Parameter>();
        animator = GetComponentInChildren<Animator>();

        Player = GameObject.FindWithTag("Player").transform;
    }
Esempio n. 2
0
 protected override void CheckRoleIsHeroOrNot()
 {
     if (!IsCopy)
     {
         if (this.m_isHero)
         {
             GameManager.Instance.TimedSendPackage.AddSendInfoObj(this);
         }
         else
         {
             m_smooth = new MoveSmooth();
         }
     }
 }
Esempio n. 3
0
    // Use this for initialization
    void Start()
    {
        ecZ = GetComponent<Enemy_ControllerZ>();
        MS = GetComponent<MoveSmooth>();
        animator = GetComponentInChildren<Animator>();

        priority = 6;//最初はサーチに

        //Player = GameObject.FindWithTag("Player").transform;
    }
Esempio n. 4
0
    // Use this for initialization
    void Start()
    {
        ecZ = GetComponent<Enemy_ControllerZ>();
        MS = GetComponent<MoveSmooth>();
        animator = GetComponentInChildren<Animator>();
        //SE = GetComponent<AudioSource>();

        CCZ = Camera.main.gameObject.GetComponent<Camera_ControllerZ>();

        priority = 5;//最初はサーチに

        oldpos = transform.position;
    }
Esempio n. 5
0
    // Use this for initialization
    void Start()
    {
        ecZ = GetComponent<Enemy_ControllerZ>();
        MS = GetComponent<MoveSmooth>();
        animator = GetComponentInChildren<Animator>();
        SE[0] = GetComponent<AudioSource>();

        CCZ = Camera.main.gameObject.GetComponent<Camera_ControllerZ>();

        priority = 5;//最初はサーチに
    }
Esempio n. 6
0
    // Use this for initialization
    void Start()
    {
        move_controller = GetComponent<Move_Controller>();
        Player = GameObject.FindGameObjectWithTag("Player");
        if (Territory == null) Territory = this.gameObject.transform;//テリトリーがない場合は自分の位置を入れといて変な挙動をしないようにする

        //移動方法によって動きを変える
        switch (move)
        {
            case Enemy_Move.Ground://×ナビで動く ○自力で
                MoveS = GetComponent<MoveSmooth>();
                break;
            case Enemy_Move.Float://自力で動かす
                MoveS = GetComponent<MoveSmooth>();
                break;
            case Enemy_Move.Stand://何もしない
                break;
            default:
                break;
        }

        //初期パラメタを保存
        max_HP = H_point;
        max_MP = M_point;
        base_Pow = power;
        base_Def = def;
        base_Sp = speed;
        base_Ju = jump;
    }
Esempio n. 7
0
    // Use this for initialization
    void Start()
    {
        Player = GameObject.FindGameObjectWithTag("Player");

        //Sinで動かすときはこの二つが必要
        if(element == Move_Type.Sin)
        {
            MS = GetComponent<MoveSmooth>();
            MC = GetComponent<Move_Controller>();
        }
    }