コード例 #1
0
 public virtual Component GetComponent(TypeOfComponent type)
 {
     foreach (Component c in Components)
     {
         if (c.typeOfComponent == type)
         {
             return(c);
         }
     }
     return(null);
 }
コード例 #2
0
 public BodyComponent(TypeOfComponent typeOfComponent, GameObject owner) : base(typeOfComponent, owner)
 {
 }
コード例 #3
0
ファイル: Component.cs プロジェクト: NordsidaSoftware/TreDe
 public Component(TypeOfComponent typeOfComponent, GameObject owner)
 {
     this.typeOfComponent = typeOfComponent;
     this.owner           = owner;
 }
コード例 #4
0
 public override Component GetComponent(TypeOfComponent type)
 {
     return(base.GetComponent(type));
 }
コード例 #5
0
 public WeaponComponent(TypeOfComponent typeOfComponent, GameObject owner) : base(typeOfComponent, owner)
 {
     Attacks = new List <Attack>();
 }
コード例 #6
0
 }                             // read only
 public HappeningArgs(TypeOfComponent requires, string text)
 {
     this.requires = requires;
     this.text     = text;
 }
コード例 #7
0
 public ContainerComponent(TypeOfComponent typeOfComponent, GameObject owner) : base(typeOfComponent, owner)
 {
     Contains = new List <Item>();
 }