Exemple #1
0
 public bool ismoreaiattack;   //是否是高级战斗方式
 // Use this for initialization
 void Start()
 {
     //开关脚本
     //GetComponent<monsterAI_2>().enabled = false;
     ailibrary = gameObject.GetComponent <lnxAIlibrary>();
     state     = 0;//默认状态是0,既行走状态
 }
Exemple #2
0
    private bool entered = false;//判断是否已进入区域

    // Use this for initialization
    void Start()
    {
        thisLnx    = GetComponent <lnxAIlibrary>();
        onEnmyLife = Resources.Load <OnEnemyLife>("Prefabs/UIElement-EnemyLife");
    }
Exemple #3
0
    private bool nowmovetoplayer = true; //怪物是否移动向玩家、



    // Use this for initialization
    void Start()
    {
        ailibrary      = gameObject.GetComponent <lnxAIlibrary>();
        Attackdistance = 8f;//设定怪物的攻击距离
    }