// Use this for initialization void Start() { randomBehaviour = gameObject.GetComponent <RandomBehaviour>(); if (randomBehaviour == null) { Debug.LogError("cannot find random behaviour on game behaviour"); } spawns = GameObject.FindGameObjectsWithTag("Respawn"); if (spawns.Length == 0) { Debug.LogError("cannot find respawn objects"); } }
public static T SetBehaviour <T>(this T entity, RandomBehaviour value) where T : BehaviorModeDescription { entity.SetField("behaviour", value); return(entity); }
public PNJ(RandomBehaviour randomBehaviour) { this.randomBehaviour = randomBehaviour; this.next(); }