Graphics Reference
In-Depth Information
using UnityEngine;
namespace AIAttackStates
{
public enum AIAttackState
{
random_fire,
look_and_destroy,
no_attack,
}
}
Below is the BaseArmedEnemy.cs script:
using AIAttackStates;
using UnityEngine;
using System.Collections;
public class BaseArmedEnemy : ExtendedCustomMonoBehavior
{
[System.NonSerialized]
public bool doFire;
public bool onlyFireWhenOnscreen;
public int pointsValue=50;
public int thisEnemyStrength= 1;
public bool thisGameObjectShouldFire;
// we use a renderer to test whether or not the ship is on screen
public Renderer rendererToTestAgainst;
public Standard_SlotWeaponController weaponControl;
public GameObject mesh_parentGO;
private bool canFire;
public float fireDelayTime =1f;
public BasePlayerManager myPlayerManager;
public BaseUserManager myDataManager;
public bool isBoss= false;
public int tempINT;
// default action is to attack nothing
public AIAttackState currentState= AIAttackState.random_fire;
public string tagOfTargetsToShootAt;
public void Start ()
{
// now call our script-specific init function
InitThis ();
}
Search WWH ::




Custom Search