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