示例#1
0
 public override void LinkToDependency(Module dependency)
 {
     if (dependency.IsModuleType(ModuleType.Transform))
     {
         _collision = (dependency as TransformModule).gameObject.AddComponent <CollisionBehaviour>();
     }
 }
示例#2
0
 protected override void DestroyInternal()
 {
     _collision = null;
 }