コード例 #1
0
 protected override void Start()
 {
     base.Start();
     this.preConditions["has" + typeof(TResource).Name]     = true;
     this.preConditions["know" + typeof(TDestination).Name] = true;
     this.effects["collect" + typeof(TResource).Name]       = true;
     _resourceMemory = GetComponent <ResourceMemoryComponent>();
 }
コード例 #2
0
 protected override void Start()
 {
     base.Start();
     this.preConditions["know" + typeof(TSource).Name] = true;
     this.preConditions["has" + typeof(TOutput).Name]  = false;
     this.effects["know" + typeof(TOutput).Name]       = true;
     _resourceMemory = GetComponent <ResourceMemoryComponent>();
 }