Firstborn/Assets/RPG Creation Kit/Scripts/AI/Creature AI/CreatureAI.cs

29 lines
699 B
C#
Raw Permalink Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using RPGCreationKit;
using RPGCreationKit.AI;
namespace RPGCreationKit
{
public class CreatureAI : RckAI
{
public GameObject assignedModel;
public bool validAssignedModel = false;
public GameObject[] toDisableOnDeath;
public override void OnEnterInCombat()
{
base.OnEnterInCombat();
DrawWeaponEvent();
canAttack = true;
}
public override void Die()
{
base.Die();
for (int i = 0; i < toDisableOnDeath.Length; i++)
toDisableOnDeath[i].SetActive(false);
}
}
}