Beispiel #1
0
 public EnemyHuman(GameObject _gameObject, Behaviour _behaviour, Attribute _Attribute) : base(_gameObject)
 {
     m_Attribute = _Attribute;
     m_Behaviour = _behaviour;
     m_EnemyAI   = m_GameObject.GetComponent <EnemyAIScript>();
     SetWalkBehaviour();
 }
    // Start is called before the first frame update
    void Start()
    {
        //  enemyScript = GameObject.Find("Main Camera");
        //  enemyS = enemyScript.GetComponent<EnemyAIScript>();

        enemy = new EnemyAIScript();
    }
    // Use this for initialization
    void Start()
    {
        hpScript = gameObject.GetComponent<HealthScript>();
        damagedThisTurn = false;
        startOfHeal = true;
        state = "Standby";
        speed = 15.0f;

        attackDelay = 700.0f;
        attackTimer = attackDelay;
        nextTurnChoice = "";
        dmgBox = (DamageBoxScript) GameObject.Find ("DamageBox").GetComponent<DamageBoxScript>();
        uiScript = (CursorScript) GameObject.Find ("Menu Cursor").GetComponent<CursorScript>();
        aiScript = (EnemyAIScript) GameObject.Find ("Menu Cursor").GetComponent<EnemyAIScript>();
        maxHealth = GameObject.Find ("Menu Cursor").GetComponent<StatsScript>().GetMaxHP (gameObject.name);
        health = maxHealth;
        maxMana = GameObject.Find ("Menu Cursor").GetComponent<StatsScript>().GetMaxMP (gameObject.name);
        mana = maxMana;

        naturalRotation = transform.rotation;
    }
Beispiel #4
0
 void Start()
 {
     EnemyAI = transform.parent.GetComponent <EnemyAIScript>();
 }