コード例 #1
0
 public void Configure(DwarfStatus dwarf)
 {
     mDwarfStatus    = dwarf;
     mDwarfSelect    = dwarf.GetComponent <DwarfSelect>();
     mDwarfBehaviour = dwarf.GetComponent <DwarfBehaviour>();
     mNameText.text  = mDwarfStatus.dwarfName;
 }
コード例 #2
0
 void Awake()
 {
     mInventory      = GetComponent <DwarfInventory>();
     mStatus         = GetComponent <DwarfStatus>();
     mTaskQueue      = new LinkedList <Task>();
     mTasksBlackList = new List <int>();
 }
コード例 #3
0
 public virtual void Perform(DwarfInventory inventory, System.Action onFinish)
 {
     mDwarfInventory   = inventory;
     mDwarfStatus      = inventory.GetComponent <DwarfStatus>();
     mDwarfBehaviour   = inventory.GetComponent <DwarfBehaviour>();
     mOnFinishCallback = onFinish;
 }
コード例 #4
0
    // === CONSTRUCTOR ===

    public Dwarf()
    {
        DwarfLocation    = null;
        OldDwarfLocation = null;
        SeenPlayer       = false;
        Status           = DwarfStatus.ALIVE;
    }