public void Configure(DwarfStatus dwarf) { mDwarfStatus = dwarf; mDwarfSelect = dwarf.GetComponent <DwarfSelect>(); mDwarfBehaviour = dwarf.GetComponent <DwarfBehaviour>(); mNameText.text = mDwarfStatus.dwarfName; }
void Awake() { mInventory = GetComponent <DwarfInventory>(); mStatus = GetComponent <DwarfStatus>(); mTaskQueue = new LinkedList <Task>(); mTasksBlackList = new List <int>(); }
public virtual void Perform(DwarfInventory inventory, System.Action onFinish) { mDwarfInventory = inventory; mDwarfStatus = inventory.GetComponent <DwarfStatus>(); mDwarfBehaviour = inventory.GetComponent <DwarfBehaviour>(); mOnFinishCallback = onFinish; }
// === CONSTRUCTOR === public Dwarf() { DwarfLocation = null; OldDwarfLocation = null; SeenPlayer = false; Status = DwarfStatus.ALIVE; }